From 48f66a539a1672e48eb9828887d81f5eb8316e50 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 19 Dec 2013 15:07:41 +0100 Subject: Administrativ act form: change required fields (refs #1575) --- archaeological_operations/forms.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index 0cef41125..52507d748 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -594,13 +594,14 @@ class AdministrativeActOpeForm(forms.Form): signatory = forms.IntegerField(label=_("Signatory"), widget=widgets.JQueryAutoComplete(reverse_lazy('autocomplete-person'), associated_model=Person, new=True), - validators=[valid_id(Person)]) + validators=[valid_id(Person)], required=False) act_object = forms.CharField(label=_(u"Object"), max_length=200, - widget=forms.Textarea) + widget=forms.Textarea, required=False) signature_date = forms.DateField(label=_(u"Signature date"), widget=widgets.JQueryDate) if settings.COUNTRY == 'fr': - ref_sra = forms.CharField(label=u"Référence SRA", max_length=15) + ref_sra = forms.CharField(label=u"Référence SRA", max_length=15, + required=False) def __init__(self, *args, **kwargs): super(AdministrativeActOpeForm, self).__init__(*args, **kwargs) -- cgit v1.2.3