kopia lustrzana https://github.com/wagtail/wagtail
Dont test the manager of abstract Pages
rodzic
c1c32b5599
commit
04537e6cda
|
@ -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:
|
||||
|
|
Ładowanie…
Reference in New Issue