Source to expzdee

Contents:

class expzdee.perms.models.PermRelation(*args, **kwargs)[source]

PermRelation(id, user, group, role, content_type, content_id)

exception DoesNotExist
exception PermRelation.MultipleObjectsReturned
PermRelation.content

Provides a generic relation to any object through content-type/object-id fields.

PermRelation.content_type
PermRelation.get_role_display(*moreargs, **morekwargs)
PermRelation.group
PermRelation.objects = <django.db.models.manager.Manager object at 0x2b3948cd5690>
PermRelation.user
expzdee.perms.utils.grant_role(obj, role, user=None, group=None)[source]
expzdee.perms.utils.has_permission(obj, user, permission)[source]
expzdee.perms.utils.is_my_perms(user, perms)[source]
expzdee.perms.utils.permissions_filter_queryset(request, qs, perm='view')[source]

Navigation

<<