From 77f1db337b0aa2cec85a7558f9b7fe9d4a6b800f Mon Sep 17 00:00:00 2001 From: Roland Haroutiounian Date: Fri, 27 May 2016 11:20:42 +0200 Subject: [PATCH] Changed the emfield_new method --- lodel/datasource/mongodb/migration_handler.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lodel/datasource/mongodb/migration_handler.py b/lodel/datasource/mongodb/migration_handler.py index 89f434d..ce65c84 100644 --- a/lodel/datasource/mongodb/migration_handler.py +++ b/lodel/datasource/mongodb/migration_handler.py @@ -91,10 +91,7 @@ class MongoDbMigrationHandler(GenericMigrationHandler): self._create_field_in_collection(class_name, uid, new_state) return True - if new_state['internal']: - # TODO ? - else: - collection_name = self._class_collection_name_from_field(model, new_state) + collection_name = self._class_collection_name_from_field(model, new_state) field_definition = self._field_definition(new_state['data_handler'], new_state) self._create_field_in_collection(collection_name, uid, field_definition)