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.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index 7565c8288..5f5369e8b 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -114,9 +114,14 @@ def get_values_town_related(item, prefix, values):
number=dpt).count()])
return values
+QUALITY = (('ND', _(u"Not documented")),
+ ('A', _(u"Arbitrary")),
+ ('R', _(u"Reliable")),)
+
class Operation(BaseHistorizedItem, OwnPerms, ValueGetter, ShortMenuItem,
DashboardFormItem):
+ QUALITY_DICT = dict(QUALITY)
TABLE_COLS = ['year_index', 'operation_type', 'remains', 'towns',
'start_date', 'excavation_end_date']
if FILES_AVAILABLE:
@@ -206,6 +211,14 @@ class Operation(BaseHistorizedItem, OwnPerms, ValueGetter, ShortMenuItem,
archaeological_sites = models.ManyToManyField(
ArchaeologicalSite, verbose_name=_(u"Archaeological sites"),
null=True, blank=True)
+ virtual_operation = models.BooleanField(
+ _(u"Virtual operation"),
+ default=False, help_text=_(
+ u"If checked, it means that this operation have not been "
+ u"officialy registered."))
+ record_quality = models.CharField(
+ _(u"Record quality"), max_length=2, null=True, blank=True,
+ choices=QUALITY)
history = HistoricalRecords()
class Meta: