model_permissions.templatetags.model_permissions
- model_permissions.templatetags.model_permissions.get_perms(context, obj=None)[source]
Return a lookup dict to access permissions.
This will try to use the
object
in the context if none is given. The lookup dict will not contain any object permissions if the context doesn’t have an'object'
key or if it’sNone
.