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`.
This commit is contained in:
Maarten ter Huurne 2023-03-17 17:26:54 +01:00
parent 61544365d4
commit 033fca4e2d

View file

@ -89,7 +89,7 @@ class InheritanceQuerySetMixin:
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):