Answer the question
In order to leave comments, you need to log in
How to use groups in Django?
I have a general educational question. In projects, to restrict the rights to perform operations, I usually rewrite the standard User model and add roles to it through models.BooleanField
. On the basis of which I prescribe logic in views through user.request.....
.
I want to understand what advantages the use of group gives, what they are for, or, in fact, changing the user model, I simply duplicate the built-in functionality, and in this case, can I do without them?
Answer the question
In order to leave comments, you need to log in
I rewrite the standard User model and add roles to it through models.BooleanField
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question