Model Managers and QuerySets¶
The following Managers and QuerySets support the various mixins and base classes provided by Djem.
CommonInfoManager
¶
-
class
djem.models.managers.
CommonInfoManager
¶ CommonInfoManager
is a custom manager forCommonInfoMixin
that simply provides access toCommonInfoQuerySet
.
CommonInfoQuerySet
¶
-
class
djem.models.managers.
CommonInfoQuerySet
(*args, **kwargs)[source]¶ CommonInfoQuerySet
provides custom functionality pertaining to the fields provided byCommonInfoMixin
.
ArchivableManager
¶
-
class
djem.models.managers.
ArchivableManager
(archived=None)[source]¶ ArchivableManager
is a custom manager forArchivableMixin
. The constructor argumentarchived
is a flag used to dictate the default filter applied on theis_archived
field provided byArchivableMixin
. When given asNone
, no filter will be applied (the manager behaviour will not be altered). When given asTrue
orFalse
, the default queryset provided by the manager will be filtered to archived or unarchived records, respectively.ArchivableManager
provides access toArchivableQuerySet
.
ArchivableQuerySet
¶
-
class
djem.models.managers.
ArchivableQuerySet
(*args, **kwargs)[source]¶ ArchivableQuerySet
provides custom functionality pertaining to theis_archived
field provided byArchivableMixin
.
VersioningManager
¶
-
class
djem.models.managers.
VersioningManager
¶ VersioningManager
is a custom manager forVersioningMixin
that simply provides access toVersioningQuerySet
.