diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index 0fce60783b8..c8dd9f6910d 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -383,6 +383,7 @@ Contributors * jonny5532 * William Blackie * Andrew Miller +* Dani Hodovic Translators =========== diff --git a/wagtail/core/models.py b/wagtail/core/models.py index 5499d7c4343..1181c0109fd 100644 --- a/wagtail/core/models.py +++ b/wagtail/core/models.py @@ -243,7 +243,7 @@ class Page(AbstractPage, index.Indexed, ClusterableModel, metaclass=PageBase): help_text=_("The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/") ) content_type = models.ForeignKey( - 'contenttypes.ContentType', + ContentType, verbose_name=_('content type'), related_name='pages', on_delete=models.SET(get_default_page_content_type)