MCPcopy
hub / github.com/django/django / get_permission_codename

Function get_permission_codename

django/contrib/auth/__init__.py:370–374  ·  view source on GitHub ↗

Return the codename of the permission for the specified action.

(action, opts)

Source from the content-addressed store, hash-verified

368
369
370def get_permission_codename(action, opts):
371 """
372 Return the codename of the permission for the specified action.
373 """
374 return "%s_%s" % (action, opts.model_name)
375
376
377def update_session_auth_hash(request, user):

Calls

no outgoing calls