kopia lustrzana https://github.com/wagtail/wagtail
TestPageModel needs to be both is_abstract = True and Meta.abstract = True
rodzic
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
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue