From 9906fda1420161c55a832d37f67d9b973e175eb1 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 3 Mar 2014 09:19:39 +0100 Subject: Archaeological files: improve research archaeology form (refs #1682) --- archaeological_files/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'archaeological_files/forms.py') diff --git a/archaeological_files/forms.py b/archaeological_files/forms.py index d5e94fb48..48ed874ff 100644 --- a/archaeological_files/forms.py +++ b/archaeological_files/forms.py @@ -222,14 +222,14 @@ class FileFormResearch(forms.Form): args=["_".join( [unicode(PersonType.objects.get(txt_idx='head_scientist').pk), unicode(PersonType.objects.get(txt_idx='sra_agent').pk)])]), - associated_model=Person), label=_(u"Scientist in charge")) + associated_model=Person, new=True), label=_(u"Scientist in charge")) requested_operation_type = forms.ChoiceField( label=_(u"Requested operation type"), choices=[]) organization = forms.IntegerField(label=_(u"Lead organization"), widget=widgets.JQueryAutoComplete( reverse_lazy('autocomplete-organization'), - associated_model=Organization), + associated_model=Organization, new=True), validators=[valid_id(Organization)], required=False) if settings.COUNTRY == 'fr': cira_advised = forms.NullBooleanField(label=u"Passage en CIRA", -- cgit v1.2.3