Source code for werewolf.models.managers

__title__ = 'werewolf.models.managers'
__version__ = '0.4'
__build__ = 0x000004
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
__all__ = ('WerewolfBaseManager',)

from django.db import models

from werewolf.settings import STATUS_PUBLISHED

[docs]class WerewolfBaseManager(models.Manager): """ Werewolf base manager. """ def published(self): return self.filter(status__exact=STATUS_PUBLISHED)
Read the Docs v: latest
Versions
latest
Downloads
PDF
HTML
Epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.