summaryrefslogtreecommitdiff
path: root/archaeological_files_pdl/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-07-16 22:30:09 +0200
committerÉtienne Loks <etienne.loks@proxience.com>2015-07-16 22:30:09 +0200
commit2777328c08b6c4e730f54de97d4f0e6e71b1916f (patch)
treef770c0cff50fa9b769d480fa505c12a064099245 /archaeological_files_pdl/forms.py
parent15b722c99a45532f066dab777abb2c3e481719e9 (diff)
downloadIshtar-2777328c08b6c4e730f54de97d4f0e6e71b1916f.tar.bz2
Ishtar-2777328c08b6c4e730f54de97d4f0e6e71b1916f.zip
Archaeaological file creation: fix related file association (refs #2672)
Diffstat (limited to 'archaeological_files_pdl/forms.py')
-rw-r--r--archaeological_files_pdl/forms.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_files_pdl/forms.py b/archaeological_files_pdl/forms.py
index 53d473b96..102275d64 100644
--- a/archaeological_files_pdl/forms.py
+++ b/archaeological_files_pdl/forms.py
@@ -204,7 +204,8 @@ class FileFormPlanningService(PersonOrgaForm):
class FileFormInstruction(forms.Form):
form_label = u"Instruction SRA"
- associated_models = {'in_charge':models.Person}
+ associated_models = {'in_charge':models.Person,
+ 'related_file':models.File}
in_charge = forms.IntegerField(label=_("Person in charge"),
widget=widgets.JQueryAutoComplete(reverse_lazy('autocomplete-person',
args=[PersonType.objects.get(txt_idx='sra_agent').pk]),