How can I limit ModelAdmin queryset to user-editable items when using object permissions?

Posted by brookstravis on Stack Overflow See other posts from Stack Overflow or by brookstravis
Published on 2010-05-23T14:11:18Z Indexed on 2010/05/23 14:21 UTC
Read the original article Hit count: 481

I'm trying to implement Florian's object permissions system from his article on Django Advent, but I'm running into an issue trying to limit the queryset returned to only items the user has permission to edit/view. Florian mentions it in his section on wrapping the admin, but skips over it. I can't see a good way to filter the queryset. Am I missing something?

© Stack Overflow or respective owner

Related posts about django

Related posts about django-models