Permission(which lives in django.contrib.auth.models) is the database object. You can see them all with Permission.objects.all(). They are created automatically by the post-processing signal for each model (and as indicated in the documents , you can also define your own).
To assign permissions to a user, you will first need to get the objects Permission(using Permission.objects.get(*args)), and then you can add it to the user with User.user_permissions.add(permission), as you mentioned.
, , - Django. , . , , , . , , , is_superuser True.