From 8d66d66a9315f3625884e168dbd79784a7144718 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 3 Nov 2015 00:39:23 +0100 Subject: Archaeologicla files: display and allow modifications of town planning service address --- archaeological_files_pdl/forms.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'archaeological_files_pdl/forms.py') 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)] ) -- cgit v1.2.3