Mercurial > hg > Feedworm
diff backend/couchdb/FeedEntry.py @ 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 | 91a24f499318 |
children | d0ced79b5030 |
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()