Browse Source

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

Roland Haroutiounian 8 years ago
parent
commit
84cddbf67f
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      scripts/admin.py

+ 2
- 2
scripts/admin.py View File

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

Loading…
Cancel
Save