summaryrefslogtreecommitdiff
path: root/archaeological_files_pdl/forms.py
diff options
context:
space:
mode:
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]),