Browse Source

Reference fix on the call of a class property in the migration handler

Roland Haroutiounian 8 years ago
parent
commit
97de4a91b6
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lodel/datasource/mongodb/migration_handler.py

+ 1
- 1
lodel/datasource/mongodb/migration_handler.py View File

@@ -125,7 +125,7 @@ class MongoDbMigrationHandler(GenericMigrationHandler):
125 125
         class_collection_name = utils.object_collection_name(class_name)
126 126
         return class_collection_name
127 127
 
128
-    def _create_collection(self, collection_name, charset='utf8', if_exists=self.__class__.COMMANDS_IFEXISTS_NOTHING):
128
+    def _create_collection(self, collection_name, charset='utf8', if_exists=MongoDbMigrationHandler.COMMANDS_IFEXISTS_NOTHING):
129 129
         if if_exists == self.__class__.COMMANDS_IFEXISTS_DROP:
130 130
             if collection_name in self.database.collection_names(include_system_collections = False):
131 131
                 self._delete_collection(collection_name)

Loading…
Cancel
Save