]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
Revert "models: Only set 'base_manager_name' for Django >= 1.10"
authorStephen Finucane <stephen@that.guru>
Sat, 6 Oct 2018 21:27:01 +0000 (22:27 +0100)
committerStephen Finucane <stephen@that.guru>
Sat, 6 Oct 2018 21:32:53 +0000 (22:32 +0100)
This reverts commit 5708fb48adecfd9929366b114bdb6d4cd09df74e.

This change required a migration which was not included in 2.0.0. It's
not possible to backport the migration but since this change only hides
a warning in the versions of Django supported here, it's easy to just
revert this.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Stable-Only

patchwork/models.py

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