diff options
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 |
commit | 7d3f92c984557bb6b1da349be4db42c67fb44070 (patch) | |
tree | 6908dba039db7b2f4b1150d98c2afe5bd12578a3 /archaeological_finds/models.py | |
parent | 9136ee122dc616d12f85d82922b392f9d7596cd6 (diff) | |
download | Ishtar-7d3f92c984557bb6b1da349be4db42c67fb44070.tar.bz2 Ishtar-7d3f92c984557bb6b1da349be4db42c67fb44070.zip |
Archaeological finds: add a "checked date" field (refs #2947)
Diffstat (limited to 'archaeological_finds/models.py')
-rw-r--r-- | archaeological_finds/models.py | 4 |
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): |