def crud_permission_name(model, action, convert=True):
    """Returns permission name using Django naming convention: app_label.action_object.

    If `convert` is True, `create` and `update` actions would be renamed
    to `add` and `change`.
    """
    app_label = model._meta.app_label
    model_lower = model.__name__.lower()
    if convert:
        action = MAP_PERMISSION_ACTIONS.get(action, action)
    return '%s.%s_%s' % (
        app_label,
        action,
        model_lower
    )
Returns permission name using Django naming convention: app_label.action_object.

    If `convert` is True, `create` and `update` actions would be renamed
    to `add` and `change`.