Ahh yes, I have this exact same problem. Here's my current, hacky solution:

class ActivePersonAdmin(PersonAdmin):
    def get_queryset(self, request):
        if request.path == '/admin/app/activeperson/':  # HACK
            return Person.objects.filter(active=True)  # filtered 
changelist page qs
        else:
            return Person.objects.all()  # unfiltered qs for change page

I'm curious what you end up doing because I'm not happy with my solution.

-- 
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/39b4a44d-cc68-4f49-952f-8b433582c2cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to