summaryrefslogtreecommitdiff
path: root/archaeological_operations/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r--archaeological_operations/forms.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py
index 2b5e7c8f0..488f7d74e 100644
--- a/archaeological_operations/forms.py
+++ b/archaeological_operations/forms.py
@@ -488,7 +488,7 @@ class OperationSelect(GeoItemSelect):
label=_("Full text search"), widget=widgets.SearchWidget(
'archaeological-operations', 'operation'))
year = forms.IntegerField(label=_("Year"))
- operation_code = forms.IntegerField(label=_("Numeric reference"))
+ operation_code = forms.IntegerField(label=_("Yearly index"))
code_patriarche = forms.CharField(
max_length=500,
widget=OAWidget,
@@ -918,17 +918,17 @@ class OperationFormGeneral(CustomForm, ManageOldType):
Max('operation_code'))["operation_code__max"]
if year and max_val:
msg = _(
- "Operation code already exists for year: %(year)d - use a "
- "value bigger than %(last_val)d") % {
+ "This index already exists for year: %(year)d - use a "
+ "value bigger than %(last_val)d or empty the yearly index field.") % {
'year': year, 'last_val': max_val}
else:
- msg = _("Bad operation code")
+ msg = _("Bad operation index")
raise forms.ValidationError(msg)
return self.cleaned_data
class OperationFormModifGeneral(OperationFormGeneral):
- operation_code = forms.IntegerField(label=_("Operation code"),
+ operation_code = forms.IntegerField(label=_("Yearly index"),
required=False)
currents = {'associated_file': File}
associated_file = forms.IntegerField(