def format_perm(model, action):
    """
    Format a permission string "app.verb_model" for the model and the
    requested action (add, change, delete).
    """
    return '{meta.app_label}.{action}_{meta.model_name}'.format(
        meta=model._meta, action=action)