diff --git a/wagtail/contrib/wagtailroutablepage/tests.py b/wagtail/contrib/wagtailroutablepage/tests.py index 0a77065ee5..48df2b8a7d 100644 --- a/wagtail/contrib/wagtailroutablepage/tests.py +++ b/wagtail/contrib/wagtailroutablepage/tests.py @@ -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