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 | 9906fda1420161c55a832d37f67d9b973e175eb1 (patch) | |
tree | 7121d823efe443d27e42e8ee7815244eafa886f9 /archaeological_files/forms.py | |
parent | fb712540dfc8841b37032f33f183eeda1546b8e1 (diff) | |
download | Ishtar-9906fda1420161c55a832d37f67d9b973e175eb1.tar.bz2 Ishtar-9906fda1420161c55a832d37f67d9b973e175eb1.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", |