From 5708fb48adecfd9929366b114bdb6d4cd09df74e Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Thu, 18 May 2017 21:33:00 +0100 Subject: [PATCH] models: Only set 'base_manager_name' for Django >= 1.10 Signed-off-by: Stephen Finucane Fixes: 8585ea5 ("models: Use 'base_manager_name'") --- patchwork/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): -- 2.47.3