(request, view, obj=None)
return request.user.is_superuser
Checks if the current user is a superuser.
Checks if the current user is a superuser.
Checks if the current user is a superuser .
def is_superuser(request, view, obj=None):
    '''
    Checks if the current user is a superuser.
    '''
    return request.user.is_superuser
def is_superuser ( request , view , obj = None ) : return request . user . is_superuser