예제 #1
0
def delete_recipe(request, recipe_id):
    return delete_something_element(request, Recipe, recipe_id, 'show_recipe')
예제 #2
0
def delete_ingredient(request, ingredient_id):
    return delete_something_element(request, Ingredient, ingredient_id,
                                    'show_recipe_category_and_ingredient')
예제 #3
0
def delete_meal_plan(request, meal_plan_id):
    return delete_something_element(request, MealPlan, meal_plan_id, 'show_and_create_meal_plan')
예제 #4
0
def delete_category(request, category_id):
    return delete_something_element(request, RecipeCategory, category_id,
                                    'show_recipe_category_and_ingredient')
예제 #5
0
def delete_shopping_item_picture(request, pic_id):
    return delete_something_element(
        request, ShoppingItemPicture, pic_id,
        'show_shop_and_shopping_item_picture_setting')