diff options
Diffstat (limited to 'archaeological_files/forms.py')
-rw-r--r-- | archaeological_files/forms.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/archaeological_files/forms.py b/archaeological_files/forms.py index 50d67027c..4ff483a75 100644 --- a/archaeological_files/forms.py +++ b/archaeological_files/forms.py @@ -48,6 +48,9 @@ from ishtar_common import widgets GENERAL_CONTRACTOR, created = PersonType.objects.get_or_create( txt_idx='general_contractor') +GENERAL_CONTRACTOR_ORGA, created = OrganizationType.objects.get_or_create( + txt_idx='general_contractor') + class FileSelect(TableSelect): year = forms.IntegerField(label=_("Year")) numeric_reference = forms.IntegerField(label=_("Numeric reference")) @@ -70,7 +73,7 @@ class FileSelect(TableSelect): label=_(u"Organization of general contractor"), widget=widgets.JQueryAutoComplete( reverse_lazy('autocomplete-organization', - args=[GENERAL_CONTRACTOR.pk]), + args=[GENERAL_CONTRACTOR_ORGA.pk]), associated_model=Organization), validators=[valid_id(Organization)]) in_charge = forms.IntegerField( @@ -316,7 +319,7 @@ class AdministrativeActFileSelect(TableSelect): label=_(u"Organization of general contractor"), widget=widgets.JQueryAutoComplete( reverse_lazy('autocomplete-organization', - args=[GENERAL_CONTRACTOR.pk]), + args=[GENERAL_CONTRACTOR_ORGA.pk]), associated_model=Organization), validators=[valid_id(Organization)]) associated_file__numeric_reference = forms.IntegerField( |