Pagelike

The abstract pagetools.core.models.PagelikeModel inherits from django-model-utils: StatusModel and django-model-utils: TimeStampedModel. It also has a:

  • title

  • description (e.g. for meta tag/seo)

  • lang

and a pagetools.core.models.PublishableLangManager (named public) with one new method: lfilter, which returns published content for the current language (or for the keyword argument lang). Content is published if it’s status is the same as pagetools.core.settings.STATUS_PUBLISHED, which must be one of pagetools.core.settings.STATUS_CHOICES, defaults are “draft” and “published”.

The pagetools.core.admin.PagelikeAdmin adds tinymce to media and applies it to all textfields.