mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-05-09 18:54:43 +00:00
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:
parent
61544365d4
commit
033fca4e2d
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ class InheritanceQuerySetMixin:
|
||||||
chained.__dict__.update(update)
|
chained.__dict__.update(update)
|
||||||
return chained
|
return chained
|
||||||
|
|
||||||
def _clone(self, klass=None, setup=False, **kwargs):
|
def _clone(self):
|
||||||
qs = super()._clone()
|
qs = super()._clone()
|
||||||
for name in ['subclasses', '_annotated']:
|
for name in ['subclasses', '_annotated']:
|
||||||
if hasattr(self, name):
|
if hasattr(self, name):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue