]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
models: Only set 'base_manager_name' for Django >= 1.10
authorStephen Finucane <stephen@that.guru>
Thu, 18 May 2017 20:33:00 +0000 (21:33 +0100)
committerStephen Finucane <stephen@that.guru>
Thu, 18 May 2017 20:33:00 +0000 (21:33 +0100)
Signed-off-by: Stephen Finucane <stephen@that.guru>
Fixes: 8585ea5 ("models: Use 'base_manager_name'")
patchwork/models.py

index df9e6d3dfbd7ac3138ea608a0f81238b6d23d0a4..ee66ace92b74461c3f75c56c7f1e00add9e6ba95 100644 (file)
@@ -545,7 +545,8 @@ class Patch(SeriesMixin, Submission):
 
     class Meta:
         verbose_name_plural = 'Patches'
-        base_manager_name = 'objects'
+        if django.VERSION >= (1, 10):
+            base_manager_name = 'objects'
 
 
 class Comment(EmailMixin, models.Model):