From 07aa770aaa816f02cb2108c34e5225a9eb25b797 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 10 Jan 2016 19:47:44 +0100 Subject: Fix automatic association of general contractor corporation --- archaeological_files_pdl/forms.py | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'archaeological_files_pdl/forms.py') diff --git a/archaeological_files_pdl/forms.py b/archaeological_files_pdl/forms.py index 1a260541f..8dbc12024 100644 --- a/archaeological_files_pdl/forms.py +++ b/archaeological_files_pdl/forms.py @@ -332,21 +332,6 @@ class FileFormGeneralContractor(PersonOrgaForm): new=True), validators=[valid_id(Person)]) self.fields.pop(self.ORGA_FIELD) - """ - else: - self.fields[self.ORGA_FIELD] = forms.IntegerField( - label=self.ORGA_LABEL, - required=False, - initial=initial.get(self.ORGA_FIELD, None), - 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]}, - js_template='ishtar/blocks/JQueryCorporationPerson.js', - new=True), - validators=[valid_id(models.Organization)])""" class FileFormPlanningService(forms.Form): -- cgit v1.2.3