From 867f96e36d1a67b14cdcf5de5c615a22beed2501 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 17 Nov 2015 17:42:01 +0100 Subject: Archaeological finds: add a "checked" field (refs #2947) --- archaeological_finds/models.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'archaeological_finds/models.py') 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): -- cgit v1.2.3