class models.PermissionsMixin  
- 
is_superuser - 
Boolean. Designates that this user has all permissions without explicitly assigning them.
 
- 
get_group_permissions(obj=None) - 
Returns a set of permission strings that the user has, through their groups.
If
objis passed in, only returns the group permissions for this specific object. 
- 
get_all_permissions(obj=None) - 
Returns a set of permission strings that the user has, both through group and user permissions.
If
objis passed in, only returns the permissions for this specific object. 
- 
has_perm(perm, obj=None) - 
Returns
Trueif the user has the specified permission, wherepermis in the format"<app label>.<permission codename>"(see permissions). If the user is inactive, this method will always returnFalse.If
objis passed in, this method won’t check for a permission for the model, but for this specific object. 
- 
has_perms(perm_list, obj=None) - 
Returns
Trueif the user has each of the specified permissions, where each perm is in the format"<app label>.<permission codename>". If the user is inactive, this method will always returnFalse.If
objis passed in, this method won’t check for permissions for the model, but for the specific object. 
- 
has_module_perms(package_name) - 
Returns
Trueif the user has any permissions in the given package (the Django app label). If the user is inactive, this method will always returnFalse. 
Please login to continue.