From a6ce4edc93d0e11a608ecdae19a1eb4e24554c5e Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Thu, 14 Nov 2019 09:40:38 +0100 Subject: [PATCH] external recipe form update --- cookbook/forms.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cookbook/forms.py b/cookbook/forms.py index 02724ba5c..f5b149480 100644 --- a/cookbook/forms.py +++ b/cookbook/forms.py @@ -16,6 +16,10 @@ class EmojiWidget(forms.TextInput): class ExternalRecipeForm(forms.ModelForm): + file_path = forms.CharField(disabled=True, required=False) + storage = forms.ModelChoiceField(queryset=Storage.objects.all(), disabled=True, required=False) + file_uid = forms.CharField(disabled=True, required=False) + class Meta: model = Recipe fields = ('name', 'keywords', 'file_path', 'storage', 'file_uid')