class documentation

class DjangoObjectPermissions(DjangoModelPermissions): (source)

View In Hierarchy

The request is authenticated using Django's object-level permissions. It requires an object-permissions-enabled backend, such as Django Guardian. It ensures that the user is authenticated, and has the appropriate `add`/`change`/`delete` permissions on the object using .has_perms. This permission can only be applied against view classes that provide a `.queryset` attribute.

Method get_required_object_permissions Undocumented
Method has_object_permission Return `True` if permission is granted, `False` otherwise.
Class Variable perms_map Undocumented

Inherited from DjangoModelPermissions:

Method get_required_permissions Given a model and an HTTP method, return the list of permission codes that the user is required to have.
Method has_permission Return `True` if permission is granted, `False` otherwise.
Class Variable authenticated_users_only Undocumented
Method _queryset Undocumented
def get_required_object_permissions(self, method, model_cls): (source)

Undocumented

def has_object_permission(self, request, view, obj): (source)

Return `True` if permission is granted, `False` otherwise.