]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
Revert "models: Use 'base_manager_name'"
authorStephen Finucane <stephen@that.guru>
Sat, 6 Oct 2018 21:27:05 +0000 (22:27 +0100)
committerStephen Finucane <stephen@that.guru>
Sat, 6 Oct 2018 21:32:57 +0000 (22:32 +0100)
This reverts commit 8585ea5afec383c9c5622843bcff0e6c448614c7.

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>
Closes: #192
Stable-Only

patchwork/models.py

index d738ed973e8359152d00cae45ead6ef7b3be4649..d3596c3a0cd342164cc67fde331c66de6e370dcb 100644 (file)
@@ -288,9 +288,6 @@ class PatchQuerySet(models.query.QuerySet):
 
 class PatchManager(models.Manager):
     use_for_related_fields = True
-    # NOTE(stephenfin): This is necessary to silence a warning with Django >=
-    # 1.10. Remove when 1.10 is the minimum supported version.
-    silence_use_for_related_fields_deprecation = True
 
     def get_queryset(self):
         return PatchQuerySet(self.model, using=self.db)
@@ -569,7 +566,6 @@ class Patch(SeriesMixin, Submission):
 
     class Meta:
         verbose_name_plural = 'Patches'
-        base_manager_name = 'objects'
 
 
 class Comment(EmailMixin, models.Model):