diff --git a/README.rst b/README.rst index a47cf83..c0e8942 100644 --- a/README.rst +++ b/README.rst @@ -99,7 +99,7 @@ The ``models.py`` file should define the custom node type, and any fields it has A page that renders RST code. """ rst_content = models.TextField(_("RST contents")) - template = models.ChatField(_("Template"), max_length=200, choices=RST_TEMPLATE_CHOICES) + template = models.CharField(_("Template"), max_length=200, choices=RST_TEMPLATE_CHOICES) class Meta: verbose_name = _("RST page") diff --git a/fluent_pages/pagetypes/fluentpage/models.py b/fluent_pages/pagetypes/fluentpage/models.py index 3dcb8c4..c0ee3a0 100644 --- a/fluent_pages/pagetypes/fluentpage/models.py +++ b/fluent_pages/pagetypes/fluentpage/models.py @@ -7,8 +7,7 @@ class FluentPageBase(HtmlPage): """ A ```FluentPage``` represents one HTML page of the site. """ - layout = models.ForeignKey(PageLayout, verbose_name=_('Layout')) - + # Access to fluent-contents via the model placeholder_set = PlaceholderRelation() contentitem_set = ContentItemRelation() @@ -26,4 +25,4 @@ class FluentPage(FluentPageBase): """ A ```FluentPage``` represents one HTML page of the site. """ - pass + layout = models.ForeignKey(PageLayout, verbose_name=_('Layout')) \ No newline at end of file