From 4329be147b3ee0f60e3c17a6c95845cac347fa28 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Sat, 26 Mar 2011 11:45:11 -0500 Subject: [PATCH] date_creation should be created --- mediagoblin/models.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mediagoblin/models.py b/mediagoblin/models.py index b14ada9f..6ae7d6f9 100644 --- a/mediagoblin/models.py +++ b/mediagoblin/models.py @@ -1,4 +1,5 @@ from mongokit import Document, Set + import datetime @@ -18,7 +19,7 @@ class MediaEntry(Document): 'media_type', 'file_store'] default_values = { - 'date_creation':datetime.datetime.utcnow} + 'created': datetime.datetime.utcnow} class User(Document): @@ -32,12 +33,12 @@ class User(Document): required_fields = ['username', 'created', 'pw_hash'] default_values = { - 'date_creation':datetime.datetime.utcnow} - + 'created': datetime.datetime.utcnow} REGISTER_MODELS = [MediaEntry, User] + def register_models(connection): """ Register all models in REGISTER_MODELS with this connection. -- 2.25.1