summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index 90215b4c6..d0059da9e 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -62,6 +62,18 @@ class Period(GeneralType):
return self.label
+class ReportState(GeneralType):
+ order = models.IntegerField(_(u"Order"))
+
+ class Meta:
+ verbose_name = _(u"Report state")
+ verbose_name_plural = _(u"Report states")
+ ordering = ('order',)
+
+ def __unicode__(self):
+ return self.label
+
+
class ArchaeologicalSite(BaseHistorizedItem):
reference = models.CharField(_(u"Reference"), max_length=20, unique=True)
name = models.CharField(_(u"Name"), max_length=200,
@@ -172,6 +184,9 @@ class Operation(BaseHistorizedItem, OwnPerms, ValueGetter, ShortMenuItem,
# preventive
effective_man_days = models.IntegerField(_(u"Effective man-days"),
blank=True, null=True)
+ report_processing = models.ForeignKey(
+ ReportState, verbose_name=_(u"Report processing"),
+ blank=True, null=True)
if settings.COUNTRY == 'fr':
code_patriarche = models.IntegerField(u"Code PATRIARCHE", null=True,
blank=True, unique=True)