Object Permissions List Population

12 views
Skip to first unread message

Karandeep Nagra

unread,
Jun 26, 2012, 5:29:56 PM6/26/12
to django...@googlegroups.com
So I've created a Server model and whenever a server instance is created, a group associated with that server is also created.  So for server "Bender", the group "Bender Admins" is created.  Now, when a Request model instance is created with Bender as its foreignkey, I automatically assign Bender Admins the "modify" permission for that instance, using the object_permissions package (https://code.osuosl.org/projects/object-permissions), but now I need to populate the list of requests in the admin change list interface.  I want to display only those requests that the user is authorized to modify.  Any ideas on how to do this?  I know it needs to be in the template change_list.html or change_list_results.html.
Reply all
Reply to author
Forward
0 new messages