Finally load all models.

Load all models for the media_types. This was stopped by a
celery problem. But that is now fixed.
This commit is contained in:
Elrond 2012-03-21 21:46:07 +01:00
parent 32adc9b2a7
commit e136ad3ed6

View File

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