TestPageModel needs to be both is_abstract = True and Meta.abstract = True

pull/1211/merge
Matt Westcott 2015-04-27 14:13:23 +01:00
rodzic 1401df9457
commit d385e1fd4b
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

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