1👍
✅
You can set the permissions in the admin page like foo.can_write or in your own view like
myuser.user_permissions.add(permission, permission, ...)
In the view you can set the permissions needed for some action. From documentations:
from django.contrib.auth.decorators import permission_required
@permission_required('polls.can_vote')
def my_view(request):
Source:stackexchange.com