Задать вопрос

Тел: +7 965 3737 888

489

Просмотров

1

Ответов

More information about users and groups in user admin

Based on this snippet. More clean, with links to the related admin forms.

Nice example on customization of contributed django admin apps.

It adds the following to the user list interface: fields for is_superuser and is_staff, last login time; by default, short names of groups user is in (mousehover to see full names) It adds the following to the to group list interface: list of users in your groups.

To enable, just put it somewhere and import it from your main urls.py: import utils/admin_auth.py

Вопрос полезен? Да0/Нет0
file_3740.py(1.8Кб)
None

Ответы (1):

Ответadehnert:06.08.2011
Ответ полезен? Да0/Нет0

Is there a reason for the adm and staff functions? Just adding 'is_superuser' and 'is_staff' (with the quotes) to list_display works fine for me.