From a2a51cb7777e054817fbac02458d0b65bd5e9146 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Sat, 6 Oct 2018 22:27:05 +0100 Subject: [PATCH] Revert "models: Use 'base_manager_name'" 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 Closes: #192 Stable-Only --- patchwork/models.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/patchwork/models.py b/patchwork/models.py index d738ed97..d3596c3a 100644 --- a/patchwork/models.py +++ b/patchwork/models.py @@ -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): -- 2.47.3