Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the widget used to assign user permissions in Django admin called?

Tags:

django

What's the name of the widget that we use to assign user permission in admin page (under the "add users" option)?

How can I use it for other things?

like image 348
seema Avatar asked Feb 13 '10 04:02

seema


1 Answers

It sounds like you are talking about filter_horizontal.

To use it, add this to your admin config for each model you want to use it:

filter_horizontal = ('field1', 'field2',)

See the docs.

like image 142
Jake Avatar answered Oct 21 '22 21:10

Jake