From e136ad3ed613b1c2b42093be687e3aea9889e5b3 Mon Sep 17 00:00:00 2001 From: Elrond Date: Wed, 21 Mar 2012 21:46:07 +0100 Subject: [PATCH] Finally load all models. Load all models for the media_types. This was stopped by a celery problem. But that is now fixed. --- mediagoblin/db/sql/open.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mediagoblin/db/sql/open.py b/mediagoblin/db/sql/open.py index 2520bb49..edbf0785 100644 --- a/mediagoblin/db/sql/open.py +++ b/mediagoblin/db/sql/open.py @@ -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") -- 2.25.1