diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2014-03-03 09:19:39 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2014-03-03 09:19:39 +0100 |
commit | de3ce4e5fbc0d175a32f1b5fc6edded0dc9bbc73 (patch) | |
tree | 7121d823efe443d27e42e8ee7815244eafa886f9 /archaeological_files/forms.py | |
parent | 4cf0a0655066e886e0d82b4bbef83a3a85910adc (diff) | |
download | Ishtar-de3ce4e5fbc0d175a32f1b5fc6edded0dc9bbc73.tar.bz2 Ishtar-de3ce4e5fbc0d175a32f1b5fc6edded0dc9bbc73.zip |
Archaeological files: improve research archaeology form (refs #1682)
Diffstat (limited to 'archaeological_files/forms.py')
-rw-r--r-- | archaeological_files/forms.py | 4 |
1 files changed, 2 insertions, 2 deletions
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", |