I want to set permissions to a user group in Django. I noticed that Django provides the inbuilt functionality of setting the permissions to a user group. Basically, what I need is to provide some features to a user group and then inherit those features to its users.
I've some permissions in the auth_permissions
table, I want to use that permissions and apply it to the user's group and thereby to the user. Currently, I'm logging it onto the webpage developed, and want a specific section from a webpage to be disabled to specific user group.
It's like this:-
Super-Admin-----> User Groups ----> Users
Basically, what I've doing till now is just building a webpage. Now I want to set the permissions for a particular user group, Add users to a user group , edit , delete etc. I noticed Django has proovided the permissions functionality automatically by adding, changinging,deleteing for every model. As of right now, I was just making users
, not the user groups. So, my question is How do I make a user group and apply permissions onto it. Also, add users to a user group. The properties of the user group should be inherited to its users