1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-11-01 20:10:55 +01:00

Changed the init_db method in the admin module of the scripts package to use an editorial model as argument

This commit is contained in:
Roland Haroutiounian 2016-06-16 09:03:58 +02:00
commit 84cddbf67f

View file

@ -23,7 +23,7 @@ def refresh_dyncode(model_file, translator, output_filename):
out_fd.write(dyncode)
out_fd.close()
def init_db(conn_args):
migration_handler = MongoDbMigrationHandler(conn_args=conn_args)
def init_db(conn_args, editorial_model):
migration_handler = MongoDbMigrationHandler(editorial_model, conn_args)
migration_handler._install_collections()
migration_handler.database.close()