From d385e1fd4bba0bbbc779d0bd0b4c86d9db28588e Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Mon, 27 Apr 2015 14:13:23 +0100 Subject: [PATCH] TestPageModel needs to be both is_abstract = True and Meta.abstract = True --- wagtail/contrib/wagtailroutablepage/tests.py | 5 +++++ 1 file changed, 5 insertions(+) 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