From 033fca4e2dd9531eefe35a0b47f677b0f2296ffe Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Fri, 17 Mar 2023 17:26:54 +0100 Subject: [PATCH] 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`. --- model_utils/managers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model_utils/managers.py b/model_utils/managers.py index 75d3d98..2adc2d8 100644 --- a/model_utils/managers.py +++ b/model_utils/managers.py @@ -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):