Browse Source

Bug fix on the migration_handler's register change method

Roland Haroutiounian 8 years ago
parent
commit
77a857be5e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      plugins/mongodb_datasource/migration_handler.py

+ 1
- 1
plugins/mongodb_datasource/migration_handler.py View File

110
             component_class_name = 'emfield'
110
             component_class_name = 'emfield'
111
 
111
 
112
         if component_class_name:
112
         if component_class_name:
113
-            handler_func('_'+component_class_name.lower()+'_'+state_change)
113
+            handler_func = '_'+component_class_name.lower()+'_'+state_change
114
             if hasattr(self, handler_func):
114
             if hasattr(self, handler_func):
115
                 getattr(self, handler_func)(model, uid, initial_state, new_state)
115
                 getattr(self, handler_func)(model, uid, initial_state, new_state)
116
         else:
116
         else:

Loading…
Cancel
Save