diff options
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 |
commit | 2777328c08b6c4e730f54de97d4f0e6e71b1916f (patch) | |
tree | f770c0cff50fa9b769d480fa505c12a064099245 /archaeological_files_pdl/forms.py | |
parent | 15b722c99a45532f066dab777abb2c3e481719e9 (diff) | |
download | Ishtar-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.py | 3 |
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]), |