Django admin - change permissions list

361 views
Skip to first unread message

galgal

unread,
Jul 5, 2011, 6:16:19 PM7/5/11
to django...@googlegroups.com
Is there any possibility to change permissions list in user edit page? I don't wan't to show all of permissions for example admin log entry or auth group etc.
How can I modify a main queryset to exclude some of it?

Michał Sawicz

unread,
Jul 5, 2011, 7:47:16 PM7/5/11
to django...@googlegroups.com
Dnia 2011-07-05, wto o godzinie 15:16 -0700, galgal pisze:

Override ModelAdmin.get_form(), get form_class from super() and modify
form_class.base_fields['fieldname'].queryset.

--
Michał (Saviq) Sawicz <mic...@sawicz.net>

signature.asc
Reply all
Reply to author
Forward
0 new messages