django.contrib.auth | Django documentation | Django
docs.djangoproject.com › en › 4Returns a set of permission strings that the user has, both through group and user permissions. If obj is passed in, only returns the permissions for this specific object. has_perm(perm, obj=None)¶ Returns True if the user has the specified permission, where perm is in the format "<app label>.<permission codename>". (see documentation on ...