Finally load all models.
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Wed, 21 Mar 2012 20:46:07 +0000 (21:46 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Wed, 21 Mar 2012 20:48:09 +0000 (21:48 +0100)
Load all models for the media_types. This was stopped by a
celery problem. But that is now fixed.

mediagoblin/db/sql/open.py

index 2520bb49b5f2496de2337f37d839617da20c94c1..edbf0785a78d03bed3a5db7c06bce62b99a794a5 100644 (file)
@@ -45,8 +45,7 @@ class DatabaseMaster(object):
 def load_models(app_config):
     import mediagoblin.db.sql.models
 
-    # TODO/Fix: This breaks celery
-    if False:
+    if True:
         for media_type in app_config['media_types']:
             _log.debug("Loading %s.models", media_type)
             __import__(media_type + ".models")