summaryrefslogtreecommitdiff
path: root/archaeological_files_pdl
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-11-03 00:10:50 +0100
committerÉtienne Loks <etienne.loks@proxience.com>2015-11-03 00:10:50 +0100
commit9a14870b96ced509d9fc5f3625e8ade08c0f04b9 (patch)
treeaf62a3421d113dd6226499c9a514f7ccbc301ddb /archaeological_files_pdl
parent7b883f262531b6fe49b6b5b460322b14b7b17a25 (diff)
downloadIshtar-9a14870b96ced509d9fc5f3625e8ade08c0f04b9.tar.bz2
Ishtar-9a14870b96ced509d9fc5f3625e8ade08c0f04b9.zip
Archaeological files: alow edition of planning service address
Diffstat (limited to 'archaeological_files_pdl')
-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 8682bd2c9..659d22d68 100644
--- a/archaeological_files_pdl/forms.py
+++ b/archaeological_files_pdl/forms.py
@@ -214,11 +214,13 @@ class PersonOrgaForm(forms.Form):
label=self.ORGA_LABEL,
required=False,
initial=initial.get(self.ORGA_FIELD, None),
- widget=widgets.JQueryAutoComplete(
+ widget=widgets.JQueryPersonOrganization(
reverse_lazy('autocomplete-organization',
args=[self.ORGA_TYPE.pk]),
+ reverse_lazy('organization_create'),
+ model=models.Organization,
limit={'organization_type': [self.ORGA_TYPE.pk]},
- associated_model=models.Organization,
+ js_template='ishtar/blocks/JQueryCorporationPerson.js',
new=True),
validators=[valid_id(models.Organization)])