mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-28 09:10:30 +00:00
Hide _clone params in kwargs to match django 1.9 signature
This commit is contained in:
parent
2824ec2e48
commit
bbad2b7b47
1 changed files with 2 additions and 3 deletions
|
|
@ -53,12 +53,11 @@ class InheritanceQuerySetMixin(object):
|
|||
new_qs.subclasses = subclasses
|
||||
return new_qs
|
||||
|
||||
def _clone(self, klass=None, setup=False, **kwargs):
|
||||
def _clone(self, **kwargs):
|
||||
for name in ['subclasses', '_annotated']:
|
||||
if hasattr(self, name):
|
||||
kwargs[name] = getattr(self, name)
|
||||
return super(InheritanceQuerySetMixin, self)._clone(
|
||||
klass, setup, **kwargs)
|
||||
return super(InheritanceQuerySetMixin, self)._clone(**kwargs)
|
||||
|
||||
def annotate(self, *args, **kwargs):
|
||||
qset = super(InheritanceQuerySetMixin, self).annotate(*args, **kwargs)
|
||||
|
|
|
|||
Loading…
Reference in a new issue