summaryrefslogtreecommitdiff
path: root/archaeological_finds/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-11-17 20:05:58 +0100
committerÉtienne Loks <etienne.loks@proxience.com>2015-11-17 20:05:58 +0100
commitaeb382cc4db125d4170223f477597bede2dd67af (patch)
tree6908dba039db7b2f4b1150d98c2afe5bd12578a3 /archaeological_finds/models.py
parent8af8e41836ba5eebc6d1d7c784b05a0f5d8672ab (diff)
downloadIshtar-aeb382cc4db125d4170223f477597bede2dd67af.tar.bz2
Ishtar-aeb382cc4db125d4170223f477597bede2dd67af.zip
Archaeological finds: add a "checked date" field (refs #2947)
Diffstat (limited to 'archaeological_finds/models.py')
-rw-r--r--archaeological_finds/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/archaeological_finds/models.py b/archaeological_finds/models.py
index c21c56a43..8505e81a0 100644
--- a/archaeological_finds/models.py
+++ b/archaeological_finds/models.py
@@ -17,6 +17,8 @@
# See the file COPYING for details.
+import datetime
+
from django.conf import settings
from django.contrib.gis.db import models
from django.core.urlresolvers import reverse
@@ -296,6 +298,8 @@ class Find(BaseHistorizedItem, ImageModel, OwnPerms, ShortMenuItem):
index = models.IntegerField(u"Index", default=0)
checked = models.CharField(_(u"Check"), max_length=2, default='NC',
choices=CHECK_CHOICES)
+ check_date = models.DateField(_(u"Check date"),
+ default=datetime.date.today)
history = HistoricalRecords()
def __init__(self, *args, **kwargs):