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):
|
class ProductionForm(ItfForm):
|
||||||
inlines = [PersonProductionInline, AwardsInline, EventsInline]
|
inlines = [PersonProductionInline, AwardsInline, EventsInline]
|
||||||
script = forms.ModelChoiceField(Script.objects.all(), widget=AutocompleteAddWidget(model_class=Script))
|
script = forms.ModelChoiceField(Script.objects.all(), required=False, widget=AutocompleteAddWidget(model_class=Script))
|
||||||
languages = forms.ModelMultipleChoiceField(Language.objects.all(), widget=forms.CheckboxSelectMultiple())
|
languages = forms.ModelMultipleChoiceField(Language.objects.all(), required=False, widget=forms.CheckboxSelectMultiple())
|
||||||
director = forms.ModelChoiceField(Person.objects.all(), widget=AutocompleteAddWidget(model_class=Person))
|
director = forms.ModelChoiceField(Person.objects.all(), required=False, widget=AutocompleteAddWidget(model_class=Person))
|
||||||
playwright = forms.ModelChoiceField(Person.objects.all(), widget=AutocompleteAddWidget(model_class=Person))
|
playwright = forms.ModelChoiceField(Person.objects.all(), required=False, widget=AutocompleteAddWidget(model_class=Person))
|
||||||
group = forms.ModelChoiceField(TheatreGroup.objects.all(), widget=AutocompleteAddWidget(model_class=TheatreGroup))
|
group = forms.ModelChoiceField(TheatreGroup.objects.all(), required=False, widget=AutocompleteAddWidget(model_class=TheatreGroup))
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Production
|
model = Production
|
||||||
exclude = ('added_by',)
|
exclude = ('added_by',)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user