Django users and groups - show admin group membership?

Admin administration django admin gives us easy access to configure user group dependencies through a list for selecting groups. This is the default binding for ManyToMany for the destination. And for the most part, it's nice to create a user from the start.

However, let's say I have a huge number of users and groups ... I would like to view and manage group membership by clicking on the group in the admin and see all the participants in a similar collector (or through a horizontal widget).

Is there a django built-in method / trick to display ManyToMany relationships in "reverse?"

The assignment of group tasks is different from the user admin form when creating the User. But it can be a big pain to find and manage once users and groups are well established.

I guess the workaround is to do my own browsing to display the members of the group, I just wanted to see if there is any trick that I could do with the lines or something in the admin.

+1
source share
1 answer

Try using snippet . This is an example of setting up the admin.parth administration part.

+1
source

Source: https://habr.com/ru/post/888815/


All Articles