note optional
This commit is contained in:
@ -86,6 +86,7 @@ def internal_recipe_update(request, pk):
|
|||||||
recipe_ingredient = RecipeIngredient()
|
recipe_ingredient = RecipeIngredient()
|
||||||
recipe_ingredient.recipe = recipe_instance
|
recipe_ingredient.recipe = recipe_instance
|
||||||
|
|
||||||
|
if 'note' in i:
|
||||||
recipe_ingredient.note = i['note']
|
recipe_ingredient.note = i['note']
|
||||||
|
|
||||||
if Ingredient.objects.filter(name=i['ingredient__name']).exists():
|
if Ingredient.objects.filter(name=i['ingredient__name']).exists():
|
||||||
|
Reference in New Issue
Block a user