How Can I change the functionality of displaying the groups list in change_form template of default Admin page when adding the new user.

18 views
Skip to first unread message

prag...@darwinbox.io

unread,
Oct 24, 2018, 10:30:38 PM10/24/18
to Django users
If User has created 4-5 groups and some user(with name bob) has access to only 3 groups and has right to create a new user.When Bob logged in and creates a new user there it is displaying the overall groups list.But i need to display only the groups list(in the selection box) that bob has access to.



Screenshot from 2018-10-25 07-47-01.png

In the above  picture it displays all 4 groups list. But the logged in user has only access to 2 groups.My requirement is it has to show only those 2 groups.For that what I have to do and Where I have to chnage in django template?.Can Anyone please Answer to this question.
Screenshot from 2018-10-25 07-47-01.png
Reply all
Reply to author
Forward
0 new messages