Well, a user manager can fit here. Just look through the docs . And, as Chris Pratt said, keep in mind that the first manager is becoming standard.
We hope that this will lead to the right direction.
Update (maybe you could do this):
from django.db import models
class EvilCategoryManager(models.Manager):
def get_query_set(self):
return super(EvilCategoryManager, self).get_query_set().filter(evil=False)
class Cat(models.Model):
objects = models.Manager()
no_evil_cats = EvilCategoryManager()
Jingo source
share