mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-19 06:20:59 +00:00
Dont test the manager of abstract Pages
This commit is contained in:
parent
c1c32b5599
commit
04537e6cda
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue