diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-07-04 14:39:26 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-08-13 18:26:03 +0200 |
commit | d3af6e3cce1a22853dd3cc9d25474af4718dc2eb (patch) | |
tree | 1d18a58f60f84b57c509e912a7ef52b63dafcab9 /archaeological_operations/forms.py | |
parent | b83bc8404f77600e8d313d9cdd6672d8208de01f (diff) | |
download | Ishtar-d3af6e3cce1a22853dd3cc9d25474af4718dc2eb.tar.bz2 Ishtar-d3af6e3cce1a22853dd3cc9d25474af4718dc2eb.zip |
Parcel: add cached label field
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r-- | archaeological_operations/forms.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index 4e01a492a..29a86cc2e 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -484,7 +484,7 @@ class OperationSelect(TableSelect): widget=OAWidget, label="Code PATRIARCHE") towns = get_town_field() - parcel = ParcelField(label=_("Parcel (section/number/public domain)")) + parcel = forms.CharField(label=_(u"Parcel")) if settings.ISHTAR_DPTS: towns__numero_insee__startswith = forms.ChoiceField( label=_(u"Department"), choices=[]) @@ -598,10 +598,6 @@ class OperationSelect(TableSelect): def get_input_ids(self): ids = super(OperationSelect, self).get_input_ids() - ids.pop(ids.index('parcel')) - ids.append('parcel_0') - ids.append('parcel_1') - ids.append('parcel_2') ids.pop(ids.index('relation_types')) for idx, c in enumerate(self.fields['relation_types'].choices): ids.append('relation_types_{}'.format(idx)) |