literature self_buy_giveData variable is now required in extern view

This commit is contained in:
alpcentaur 2023-02-27 17:09:29 +00:00
parent 6d3888172f
commit 914989d6ac

View file

@ -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']