diff --git a/wagtail/wagtailcore/models.py b/wagtail/wagtailcore/models.py index c7d6f19bda..e2785a2c8e 100644 --- a/wagtail/wagtailcore/models.py +++ b/wagtail/wagtailcore/models.py @@ -670,7 +670,7 @@ class Page(six.with_metaclass(PageBase, AbstractPage, index.Indexed, Clusterable """ Return the title for this page as it should appear in the admin backend. """ - return self.title + return self.draft_title def save_revision(self, user=None, submitted_for_moderation=False, approved_go_live_at=None, changed=True): self.full_clean() diff --git a/wagtail/wagtailcore/tests/test_page_model.py b/wagtail/wagtailcore/tests/test_page_model.py index 21c9eb09fc..19c4dc1c76 100644 --- a/wagtail/wagtailcore/tests/test_page_model.py +++ b/wagtail/wagtailcore/tests/test_page_model.py @@ -88,7 +88,7 @@ class TestValidation(TestCase): def test_get_admin_display_title(self): homepage = Page.objects.get(url_path='/home/') - self.assertEqual(homepage.title, homepage.get_admin_display_title()) + self.assertEqual(homepage.draft_title, homepage.get_admin_display_title()) @override_settings(ALLOWED_HOSTS=['localhost', 'events.example.com', 'about.example.com', 'unknown.site.com'])