Skip to content

meringue.core.models ¤

CMTimeMixin ¤

Bases: Model

A simple mixin to add ctime and mtime fields.

SortingMixin ¤

Bases: Model

Simple mixin to add sorting field.

PublicationMixin ¤

Bases: Model

Mixin with the functionality of manual publishing.

Examples:

>>> FooModel.object.published()
>>> FooModel.object.unpublished()

PublicationDatesMixin ¤

Bases: Model

Mixin with the functionality of publishing in a certain period.

Examples:

>>> FooModel.object.published()
>>> FooModel.object.unpublished()