Hello

You are saying this doesn't work as expected?

class MemberActive(models.Manager):
    def get_queryset(self):
        qs = super(MemberActive, self).get_queryset().filter(status='Active'
)
        return qs

class Member(models.Model):
    # etc
    Active_objects = MemberActive()

assert all(m.status == 'Active' for m in Member.Active_objects.all())

Collin

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0173f323-cabb-4b5b-a2b5-c196678a82ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to