Answer the question
In order to leave comments, you need to log in
How to make groups with rights in groups?
I am doing a community site on Django (something like groups that users create and inside they make discussions, albums, etc. like VK.)
The model of the group itself is inherited from the standard group model, with the addition of the owner field and the like.
How can I assign rights within a group? For example, a creator can invite users, edit all discussions, a regular user can create albums, and edit only those created by him.
I want to create something like "roles" - admin, moderator, normal in each group, but I don't know how to do it.
Thanks for the help)
Answer the question
In order to leave comments, you need to log in
The most popular solution is django-guardian as far as I know.
https://django-guardian.readthedocs.io/en/stable/
I do it myself.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question