summaryrefslogtreecommitdiff
path: root/archaeological_finds/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/models.py')
-rw-r--r--archaeological_finds/models.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/archaeological_finds/models.py b/archaeological_finds/models.py
index 2d82afe06..1e107a4e0 100644
--- a/archaeological_finds/models.py
+++ b/archaeological_finds/models.py
@@ -202,8 +202,14 @@ class BaseFind(BaseHistorizedItem, OwnPerms):
WEIGHT_UNIT = (('g', _(u"g")),
('kg', _(u"kg")),)
+CHECK_CHOICES = (('NC', _(u"Not checked")),
+ ('CI', _(u"Checked but incorrect")),
+ ('CC', _(u"Checked and correct")),
+ )
+
class Find(BaseHistorizedItem, ImageModel, OwnPerms, ShortMenuItem):
+ CHECK_DICT = dict(CHECK_CHOICES)
TABLE_COLS = ['label', 'material_types', 'datings.period',
'base_finds.context_record.parcel.town',
'base_finds.context_record.operation.year',
@@ -285,6 +291,8 @@ class Find(BaseHistorizedItem, ImageModel, OwnPerms, ShortMenuItem):
null=True)
previous_id = models.TextField(_(u"Previous ID"), blank=True, null=True)
index = models.IntegerField(u"Index", default=0)
+ checked = models.CharField(_(u"Check"), max_length=2, default='NC',
+ choices=CHECK_CHOICES)
history = HistoricalRecords()
def __init__(self, *args, **kwargs):