From 34a28a2718312d3214cf9b80396aeb5b6a66eb02 Mon Sep 17 00:00:00 2001 From: Sanjay B Date: Tue, 12 Mar 2013 18:40:55 +0530 Subject: [PATCH] required false --- itf/events/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/itf/events/forms.py b/itf/events/forms.py index 63fcade..20cbeca 100644 --- a/itf/events/forms.py +++ b/itf/events/forms.py @@ -27,8 +27,8 @@ GroupEventInline = itf_inlineformset_factory(Event, GroupEvent, form=GroupEventF class EventForm(ItfForm): inlines = [PersonEventInline, GroupEventInline, BuzzItemsInline] - parent_event = forms.ModelChoiceField(Event.objects.all(), widget=AutocompleteAddWidget(model_class=Event)) - production = forms.ModelChoiceField(Production.objects.all(), widget=AutocompleteAddWidget(model_class=Production)) + parent_event = forms.ModelChoiceField(Event.objects.all(), required=False, widget=AutocompleteAddWidget(model_class=Event)) + production = forms.ModelChoiceField(Production.objects.all(), required=False, widget=AutocompleteAddWidget(model_class=Production)) class Meta: model = Event