Wednesday, October 24, 2018

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

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.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f719af0c-3ebf-4308-a810-265e35852a49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment