def get_model_classes():
 result = []
 for module_name in MODEL_MODULE_NAMES:
  module = importlib.import_module(module_name)
  model_classes = getattr(module, 'MODELS', [])
  result.extend(model_classes)
 return result

def get_model_classes ( ) : result = [ ] for module_name in MODEL_MODULE_NAMES : module = importlib . import_module ( module_name ) model_classes = getattr ( module , 'MODELS' , [ ] ) result . extend ( model_classes ) return result
retrieve a list of all the defined model classes .