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:
parent
32adc9b2a7
commit
e136ad3ed6
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user