diff options
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 |
commit | 348dfe5ac1cf5acf426519e93bcd01256d7cf89e (patch) | |
tree | af62a3421d113dd6226499c9a514f7ccbc301ddb /archaeological_files_pdl | |
parent | bf6c739cbe56681874c3fd36c437b71cbcae381a (diff) | |
download | Ishtar-348dfe5ac1cf5acf426519e93bcd01256d7cf89e.tar.bz2 Ishtar-348dfe5ac1cf5acf426519e93bcd01256d7cf89e.zip |
Archaeological files: alow edition of planning service address
Diffstat (limited to 'archaeological_files_pdl')
-rw-r--r-- | archaeological_files_pdl/forms.py | 6 |
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)]) |