1👍
This is explained in the django documentation for custom permissions.
Your code is in charge of checking the value of these permissions when
a user is trying to access the functionality provided by the
application (viewing tasks, changing the status of tasks, closing
tasks.) Continuing the above example, the following checks if a user
may view tasks:
user.has_perm('app.view_task')
How these permissions are granted or how these permission are checked is entirely upto you. For example you can choose to asign these permissions at signup by listening to a signal. Or you can login to the admin area and manually assign permissions, or you can use a small script to asign permissions to many users etc etc
👤e4c5
Source:stackexchange.com