From e7227f84ca06da6817722217cf27fe0b9b52b48b Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Sun, 2 Feb 2020 22:52:25 +0100 Subject: [PATCH] some more recipe edit cleanup --- cookbook/forms.py | 2 ++ cookbook/templates/forms/edit_internal_recipe.html | 7 +++---- cookbook/views/edit.py | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cookbook/forms.py b/cookbook/forms.py index 16eb1307..f4d495ae 100644 --- a/cookbook/forms.py +++ b/cookbook/forms.py @@ -47,6 +47,8 @@ class ExternalRecipeForm(forms.ModelForm): class InternalRecipeForm(forms.ModelForm): + ingredients = forms.CharField(widget=forms.HiddenInput(), required=False) + class Meta: model = Recipe fields = ('name', 'instructions', 'image', 'working_time', 'waiting_time', 'keywords') diff --git a/cookbook/templates/forms/edit_internal_recipe.html b/cookbook/templates/forms/edit_internal_recipe.html index cfaa4341..97730dde 100644 --- a/cookbook/templates/forms/edit_internal_recipe.html +++ b/cookbook/templates/forms/edit_internal_recipe.html @@ -32,7 +32,6 @@ {% endif %} {% endfor %} -