date_creation should be created
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 26 Mar 2011 16:45:11 +0000 (11:45 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 26 Mar 2011 16:45:11 +0000 (11:45 -0500)
mediagoblin/models.py

index b14ada9f2ec6e1de26154206d96cf475814c5d99..6ae7d6f9a154590e4cbb1e8f151a6ac6428fe68b 100644 (file)
@@ -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.