Browse Source

literature self_buy_giveData variable is now required in extern view

master
alpcentaur 1 year ago
parent
commit
914989d6ac
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      input/forms.py

+ 1
- 1
input/forms.py View File

@ -117,7 +117,7 @@ class CheckForm(FdbForm):
class LiteratureForm(CheckForm): class LiteratureForm(CheckForm):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
self.fields['selfbuy_give_data'].required = False
self.fields['selfbuy_give_data'].required = True
class Meta: class Meta:
model = Literature model = Literature
fields = ['cost', 'info', 'source', 'notes', 'selfbuy', 'selfbuy_data', 'selfbuy_give_data'] fields = ['cost', 'info', 'source', 'notes', 'selfbuy', 'selfbuy_data', 'selfbuy_give_data']

Loading…
Cancel
Save