Models

BaseObjectPermission

class guardian.models.BaseObjectPermission(*args, **kwargs)

Abstract ObjectPermission class. Actual class should additionally define a content_object field and either user or group field.

UserObjectPermission

class guardian.models.UserObjectPermission(*args, **kwargs)

UserObjectPermission(id, permission, content_type, object_pk, user)

GroupObjectPermission

class guardian.models.GroupObjectPermission(*args, **kwargs)

GroupObjectPermission(id, permission, content_type, object_pk, group)