From: Stephen Finucane Date: Sat, 6 Oct 2018 21:27:05 +0000 (+0100) Subject: Revert "models: Use 'base_manager_name'" X-Git-Tag: v2.0.4~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a2a51cb7777e054817fbac02458d0b65bd5e9146;p=thirdparty%2Fpatchwork.git 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 --- 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):