def get_permission_codename(action, opts):
    return '%s_%s' % (action, opts.model_name)
Returns the codename of the permission for the specified action.
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/django/contrib/auth/__init__.py/get_permission_codename