Dont test the manager of abstract Pages

pull/2069/head
Tim Heap 2015-12-24 09:52:44 +11:00
rodzic c1c32b5599
commit 04537e6cda
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -242,7 +242,7 @@ class PageBase(models.base.ModelBase):
# will get a plain `Manager` instead of a `PageManager`.
# If the developer has set their own custom `Manager` subclass, do not
# clobber it.
if type(cls.objects) is models.Manager:
if not cls._meta.abstract and type(cls.objects) is models.Manager:
PageManager().contribute_to_class(cls, 'objects')
if 'template' not in dct: