mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-16 20:00:23 +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)
|
||||
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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue