summaryrefslogtreecommitdiffstats
path: root/core/models.py
diff options
context:
space:
mode:
authorSam Wenham <sam@wenhams.co.uk>2019-06-26 20:56:08 +0100
committerSam Wenham <sam@wenhams.co.uk>2019-06-26 20:56:08 +0100
commit8a1be45aacd3d44a49ea14a31cedd78493f8432b (patch)
tree1bdc3bf494bcdd98dd40dbfe6a30e21ae8fe9f4b /core/models.py
parent4d2f9a2b39e35fcf0c752c815bdc3733aeec8b62 (diff)
downloadtroggle-8a1be45aacd3d44a49ea14a31cedd78493f8432b.tar.gz
troggle-8a1be45aacd3d44a49ea14a31cedd78493f8432b.tar.bz2
troggle-8a1be45aacd3d44a49ea14a31cedd78493f8432b.zip
Remove this stupid hard coded name match
Diffstat (limited to 'core/models.py')
-rw-r--r--core/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/models.py b/core/models.py
index f65efed..bbdaa0b 100644
--- a/core/models.py
+++ b/core/models.py
@@ -10,7 +10,7 @@ from django.db.models import Min, Max
from django.conf import settings
from decimal import Decimal, getcontext
from django.core.urlresolvers import reverse
-from imagekit.models import ImageModel
+from imagekit.models import ProcessedImageField #ImageModel
from django.template import Context, loader
import settings
getcontext().prec=2 #use 2 significant figures for decimal calculations
@@ -248,7 +248,7 @@ class LogbookEntry(TroggleModel):
("html", "Html style logbook")
)
- date = models.DateField()#MJG wants to turn this into a datetime such that multiple Logbook entries on the same day can be ordered.ld()
+ date = models.DateTimeField()#MJG wants to turn this into a datetime such that multiple Logbook entries on the same day can be ordered.ld()
expeditionday = models.ForeignKey("ExpeditionDay", null=True)#MJG wants to KILL THIS (redundant information)
expedition = models.ForeignKey(Expedition,blank=True,null=True) # yes this is double-
title = models.CharField(max_length=settings.MAX_LOGBOOK_ENTRY_TITLE_LENGTH)