0
0
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:
Matt Westcott 2015-04-27 14:13:23 +01:00
parent 1401df9457
commit d385e1fd4b

View File

@ -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