From: Stephen Finucane Date: Thu, 18 May 2017 20:33:00 +0000 (+0100) Subject: models: Only set 'base_manager_name' for Django >= 1.10 X-Git-Tag: v2.0.0-rc2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5708fb48adecfd9929366b114bdb6d4cd09df74e;p=thirdparty%2Fpatchwork.git models: Only set 'base_manager_name' for Django >= 1.10 Signed-off-by: Stephen Finucane Fixes: 8585ea5 ("models: Use 'base_manager_name'") --- diff --git a/patchwork/models.py b/patchwork/models.py index df9e6d3d..ee66ace9 100644 --- a/patchwork/models.py +++ b/patchwork/models.py @@ -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):