make some fields in production non-required
This commit is contained in:
parent
020f788f2c
commit
1fd4bd33ce
|
@ -247,11 +247,11 @@ PersonProductionInline = itf_inlineformset_factory(Production, PersonProduction,
|
|||
|
||||
class ProductionForm(ItfForm):
|
||||
inlines = [PersonProductionInline, AwardsInline, EventsInline]
|
||||
script = forms.ModelChoiceField(Script.objects.all(), widget=AutocompleteAddWidget(model_class=Script))
|
||||
languages = forms.ModelMultipleChoiceField(Language.objects.all(), widget=forms.CheckboxSelectMultiple())
|
||||
director = forms.ModelChoiceField(Person.objects.all(), widget=AutocompleteAddWidget(model_class=Person))
|
||||
playwright = forms.ModelChoiceField(Person.objects.all(), widget=AutocompleteAddWidget(model_class=Person))
|
||||
group = forms.ModelChoiceField(TheatreGroup.objects.all(), widget=AutocompleteAddWidget(model_class=TheatreGroup))
|
||||
script = forms.ModelChoiceField(Script.objects.all(), required=False, widget=AutocompleteAddWidget(model_class=Script))
|
||||
languages = forms.ModelMultipleChoiceField(Language.objects.all(), required=False, widget=forms.CheckboxSelectMultiple())
|
||||
director = forms.ModelChoiceField(Person.objects.all(), required=False, widget=AutocompleteAddWidget(model_class=Person))
|
||||
playwright = forms.ModelChoiceField(Person.objects.all(), required=False, widget=AutocompleteAddWidget(model_class=Person))
|
||||
group = forms.ModelChoiceField(TheatreGroup.objects.all(), required=False, widget=AutocompleteAddWidget(model_class=TheatreGroup))
|
||||
class Meta:
|
||||
model = Production
|
||||
exclude = ('added_by',)
|
||||
|
|
Loading…
Reference in New Issue
Block a user