Skip to content

Commit 033fca4

Browse files
committed
Remove arguments from InheritanceQuerySetMixin._clone()
The `QuerySet._clone()` method has no arguments in either Django 3.2 or 4.1, so I'm assuming the arguments were necessary for a version of Django that is no longer supported by `django-model-utils`.
1 parent 6154436 commit 033fca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: model_utils/managers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def _chain(self, **kwargs):
8989
chained.__dict__.update(update)
9090
return chained
9191

92-
def _clone(self, klass=None, setup=False, **kwargs):
92+
def _clone(self):
9393
qs = super()._clone()
9494
for name in ['subclasses', '_annotated']:
9595
if hasattr(self, name):

0 commit comments

Comments
 (0)