From e2bf741d5db88cfe7fbc67beba4c14c200cd09e0 Mon Sep 17 00:00:00 2001 From: Charlie Denton Date: Sun, 29 Oct 2017 01:04:17 +0100 Subject: [PATCH] Remove models that are not referenced in tests This silences one instance of the warning that's being printed in tests for versions of Django before 2.0: > RemovedInDjango20Warning: Managers from concrete parents will soon > qualify as default managers if they appear before any other managers > in the MRO. --- polymorphic/tests/models.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/polymorphic/tests/models.py b/polymorphic/tests/models.py index 47f21e4..60fc619 100644 --- a/polymorphic/tests/models.py +++ b/polymorphic/tests/models.py @@ -237,21 +237,6 @@ class PlainChildModelWithManager(models.Model): objects = PlainMyManager() -class MgrInheritA(models.Model): - mgrA = models.Manager() - mgrA2 = models.Manager() - field1 = models.CharField(max_length=10) - - -class MgrInheritB(MgrInheritA): - mgrB = models.Manager() - field2 = models.CharField(max_length=10) - - -class MgrInheritC(ShowFieldTypeAndContent, MgrInheritB): - pass - - class BlogBase(ShowFieldTypeAndContent, PolymorphicModel): name = models.CharField(max_length=10)