changeset 171:27be2a5f9c10

use the new ListDateTimeField in FeedEntries to store their creation date
author dirk
date Fri, 09 Sep 2011 16:34:02 +0200
parents f0afcd1c5656
children 214addba1f93
files backend/couchdb/FeedEntry.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/backend/couchdb/FeedEntry.py	Fri Sep 09 16:22:44 2011 +0200
+++ b/backend/couchdb/FeedEntry.py	Fri Sep 09 16:34:02 2011 +0200
@@ -1,11 +1,12 @@
 
+from backend.couchdb.ListDateTimeField import ListDateTimeField
 from couchdb.mapping import BooleanField, DateTimeField, Document, TextField
 from datetime import datetime
 import CouchDb
 
 class FeedEntry(Document):
     doctype = TextField(default="feedEntry")
-    create_timestamp = DateTimeField(default=datetime.now())
+    create_timestamp = ListDateTimeField(default=datetime.now())
     read = BooleanField(default=False)
     link = TextField()
     title = TextField()