diff --git a/recipes/urls.py b/recipes/urls.py index 1b5991dc..c6f58f9a 100644 --- a/recipes/urls.py +++ b/recipes/urls.py @@ -8,7 +8,7 @@ recipe_update_view, recipe_detail_hx_view, recipe_ingredient_update_hx_view, - recipe_incredient_delete_view, + recipe_ingredient_delete_view, recipe_ingredient_image_upload_view @@ -25,7 +25,7 @@ path("hx//", recipe_detail_hx_view, name='hx-detail'), path("/image-upload/", recipe_ingredient_image_upload_view, name='recipe-ingredient-image-upload'), - path("/ingredient//delete/", recipe_incredient_delete_view, name='ingredient-delete'), + path("/ingredient//delete/", recipe_ingredient_delete_view, name='ingredient-delete'), path("/delete/", recipe_delete_view, name='delete'), path("/edit/", recipe_update_view, name='update'), path("/", recipe_detail_view, name='detail'), diff --git a/recipes/views.py b/recipes/views.py index 9e20cdf0..7c6fce34 100644 --- a/recipes/views.py +++ b/recipes/views.py @@ -57,7 +57,7 @@ def recipe_delete_view(request, id=None): @login_required -def recipe_incredient_delete_view(request, parent_id=None, id=None): +def recipe_ingredient_delete_view(request, parent_id=None, id=None): try: obj = RecipeIngredient.objects.get(recipe__id=parent_id, id=id, recipe__user=request.user) except: