mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-06 16:11:03 +00:00
TestPageModel needs to be both is_abstract = True and Meta.abstract = True
This commit is contained in:
parent
1401df9457
commit
d385e1fd4b
1 changed files with 5 additions and 0 deletions
|
|
@ -148,6 +148,11 @@ class TestOldStyleRoutablePage(TestNewStyleRoutablePage, WagtailTestUtils):
|
|||
def main(self, request):
|
||||
pass
|
||||
|
||||
# prevent this class appearing in the global PAGE_MODEL_CLASSES list, as
|
||||
# its non-standard location causes failures when translating from content types
|
||||
# back to models
|
||||
is_abstract = True
|
||||
|
||||
class Meta:
|
||||
abstract = True
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue