summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ishtar/ishtar_base/forms_operations.py2
-rw-r--r--ishtar/ishtar_base/models.py4
2 files changed, 5 insertions, 1 deletions
diff --git a/ishtar/ishtar_base/forms_operations.py b/ishtar/ishtar_base/forms_operations.py
index 4aba9ddbc..93e7ff432 100644
--- a/ishtar/ishtar_base/forms_operations.py
+++ b/ishtar/ishtar_base/forms_operations.py
@@ -275,6 +275,8 @@ class OperationFormReference(forms.Form):
pk = forms.IntegerField(required=False, widget=forms.HiddenInput)
hidden_year = forms.IntegerField(widget=forms.HiddenInput)
operation_code = forms.IntegerField(label=_(u"Operation code"))
+ common_name = forms.CharField(label=_(u"Common name"), required=False,
+ max_length=120)
if settings.COUNTRY == 'fr':
code_patriarche = forms.IntegerField(label=u"Code PATRIARCHE",
required=False)
diff --git a/ishtar/ishtar_base/models.py b/ishtar/ishtar_base/models.py
index 75a3517a0..4224adccb 100644
--- a/ishtar/ishtar_base/models.py
+++ b/ishtar/ishtar_base/models.py
@@ -1369,8 +1369,10 @@ class Operation(BaseHistorizedItem, OwnPerms):
_(u"Prescription on large area"), blank=True, null=True)
geoarchaeological_context_prescription = models.NullBooleanField(
_(u"Prescription on geoarchaeological context"), blank=True, null=True)
- operator_reference = models.CharField(_(u"Operator reference"),
+ operator_reference = models.CharField(_(u"Operator reference"),
max_length=20, null=True, blank=True)
+ common_name = models.CharField(_(u"Common name"), max_length=120, null=True,
+ blank=True)
comment = models.TextField(_(u"Comment"), null=True, blank=True)
history = HistoricalRecords()