mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-30 19:20:56 +01:00
TestPageModel needs to be both is_abstract = True and Meta.abstract = True
This commit is contained in:
parent
1401df9457
commit
d385e1fd4b
@ -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 New Issue
Block a user