diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-06-13 13:04:16 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-06-13 13:04:16 +0200 |
commit | 04be2c3f89867d2b8ae21ccb475066016bac487d (patch) | |
tree | 4ae4ae5c72d4391836ed1d346999e38aa4d48509 /archaeological_context_records/forms.py | |
parent | 99b70dd1e0724e08e55d99185407caada9ab5eaf (diff) | |
download | Ishtar-04be2c3f89867d2b8ae21ccb475066016bac487d.tar.bz2 Ishtar-04be2c3f89867d2b8ae21ccb475066016bac487d.zip |
OA code is now a string.
Diffstat (limited to 'archaeological_context_records/forms.py')
-rw-r--r-- | archaeological_context_records/forms.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/archaeological_context_records/forms.py b/archaeological_context_records/forms.py index 91effb397..77b42b609 100644 --- a/archaeological_context_records/forms.py +++ b/archaeological_context_records/forms.py @@ -59,7 +59,8 @@ class RecordSelect(TableSelect): label = forms.CharField(label=_(u"ID"), max_length=100) parcel__town = get_town_field() if settings.COUNTRY == 'fr': - operation__code_patriarche = forms.IntegerField( + operation__code_patriarche = forms.CharField( + max_length=500, widget=OAWidget, label=_(u"Code PATRIARCHE")) operation__year = forms.IntegerField(label=_(u"Operation's year")) @@ -366,7 +367,8 @@ class RecordSourceSelect(SourceSelect): context_record__operation__operation_code = forms.IntegerField( label=_(u"Numeric reference")) if settings.COUNTRY == 'fr': - context_record__operation__code_patriarche = forms.IntegerField( + context_record__operation__code_patriarche = forms.CharField( + max_length=500, widget=OAWidget, label="Code PATRIARCHE") context_record__parcel__town = get_town_field( |