summaryrefslogtreecommitdiff
path: root/archaeological_files_pdl/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-11-03 00:39:23 +0100
committerÉtienne Loks <etienne.loks@proxience.com>2015-11-03 00:39:23 +0100
commit8d66d66a9315f3625884e168dbd79784a7144718 (patch)
treef6005f71f8d14dfcedc8c4a67eeacf3ce8aca0b1 /archaeological_files_pdl/forms.py
parent348dfe5ac1cf5acf426519e93bcd01256d7cf89e (diff)
downloadIshtar-8d66d66a9315f3625884e168dbd79784a7144718.tar.bz2
Ishtar-8d66d66a9315f3625884e168dbd79784a7144718.zip
Archaeologicla files: display and allow modifications of town planning service address
Diffstat (limited to 'archaeological_files_pdl/forms.py')
-rw-r--r--archaeological_files_pdl/forms.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/archaeological_files_pdl/forms.py b/archaeological_files_pdl/forms.py
index 659d22d68..d17797a0b 100644
--- a/archaeological_files_pdl/forms.py
+++ b/archaeological_files_pdl/forms.py
@@ -253,13 +253,15 @@ class FileFormPlanningService(forms.Form):
planning_service = forms.IntegerField(
label=_("Planning service"),
required=False,
- widget=widgets.JQueryAutoComplete(
+ widget=widgets.JQueryPersonOrganization(
reverse_lazy('autocomplete-organization',
args=[RESPONSIBLE_PLANNING_SERVICE_ORGA.pk]),
+ reverse_lazy('organization_create'),
+ model=models.Organization,
limit={
'organization_type': [RESPONSIBLE_PLANNING_SERVICE_ORGA.pk]
},
- associated_model=models.Organization,
+ js_template='ishtar/blocks/JQueryCorporationPerson.js',
new=True),
validators=[valid_id(models.Organization)]
)