summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2011-09-15 00:37:29 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2011-09-15 00:37:29 +0200
commit80b87f8155481e555071cab4bea7b54619ded903 (patch)
treeed417220b858b6e77f21319bad3b09d7ff4547ae
parent1a8683842df909e97097512c3b1c361060f17f4f (diff)
downloadIshtar-80b87f8155481e555071cab4bea7b54619ded903.tar.bz2
Ishtar-80b87f8155481e555071cab4bea7b54619ded903.zip
Add operator_reference for operations (closes #367)
-rw-r--r--ishtar/ishtar_base/forms_operations.py2
-rw-r--r--ishtar/ishtar_base/models.py2
2 files changed, 4 insertions, 0 deletions
diff --git a/ishtar/ishtar_base/forms_operations.py b/ishtar/ishtar_base/forms_operations.py
index 1fefa75f5..4aba9ddbc 100644
--- a/ishtar/ishtar_base/forms_operations.py
+++ b/ishtar/ishtar_base/forms_operations.py
@@ -301,6 +301,8 @@ class OperationFormReference(forms.Form):
class OperationFormPreventive(forms.Form):
form_label = _("Preventive informations - excavation")
cost = forms.IntegerField(label=_(u"Cost (€)"), required=False)
+ operator_reference = forms.CharField(label=_(u"Operator reference"),
+ required=False, max_length=20)
if settings.COUNTRY == 'fr':
fnap_financing = forms.FloatField(required=False,
label=u"Pourcentage de financement FNAP",
diff --git a/ishtar/ishtar_base/models.py b/ishtar/ishtar_base/models.py
index 52ad08587..75a3517a0 100644
--- a/ishtar/ishtar_base/models.py
+++ b/ishtar/ishtar_base/models.py
@@ -1369,6 +1369,8 @@ 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"),
+ max_length=20, null=True, blank=True)
comment = models.TextField(_(u"Comment"), null=True, blank=True)
history = HistoricalRecords()