Skip to content

Commit

Permalink
Remove arguments from InheritanceQuerySetMixin._clone()
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
mthuurne committed Mar 17, 2023
1 parent b2269e7 commit df1023b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model_utils/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def _chain(self, **kwargs):
chained.__dict__.update(update)
return chained

def _clone(self, klass=None, setup=False, **kwargs):
def _clone(self):
qs = super()._clone()
for name in ['subclasses', '_annotated']:
if hasattr(self, name):
Expand Down

0 comments on commit df1023b

Please sign in to comment.