Answer the question
In order to leave comments, you need to log in
How to limit the selection in the admin panel depending on the user group?
Hello. I have a hierarchy of user groups. I want to make it so that in the admin panel, users of group A, when adding a new user, can select a group for the new user from the list of groups allowed for the user to add group A.
Answer the question
In order to leave comments, you need to log in
Override the formfield_for_manytomany method for the groups field.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question