summaryrefslogtreecommitdiff
path: root/archaeological_context_records
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_context_records')
-rw-r--r--archaeological_context_records/forms.py6
-rw-r--r--archaeological_context_records/models.py2
2 files changed, 5 insertions, 3 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(
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py
index 855ea7d5c..940330d86 100644
--- a/archaeological_context_records/models.py
+++ b/archaeological_context_records/models.py
@@ -390,7 +390,7 @@ class ContextRecord(BaseHistorizedItem, ImageModel, OwnPerms,
def _real_label(self):
if not self.operation.code_patriarche:
return
- return settings.JOINT.join((unicode(self.operation.code_patriarche),
+ return settings.JOINT.join((self.operation.code_patriarche,
self.label))
def _temp_label(self):