From 0b044692d68a32d58763b7c5c75d1eb44ca4a8d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benni=20B=C3=A4rmann?= Date: Fri, 9 Dec 2022 16:55:26 +0000 Subject: [PATCH] literature self_buy_giveData variable is now required in extern view --- input/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/forms.py b/input/forms.py index 48600af..3951955 100755 --- a/input/forms.py +++ b/input/forms.py @@ -117,7 +117,7 @@ class CheckForm(FdbForm): class LiteratureForm(CheckForm): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) - self.fields['selfbuy_give_data'].required = False + self.fields['selfbuy_give_data'].required = True class Meta: model = Literature fields = ['cost', 'info', 'source', 'notes', 'selfbuy', 'selfbuy_data', 'selfbuy_give_data']