#NEWLINE# def _get_model( model_identifier ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return _python_serializer_get_model ( model_def ) #NEWLINE# #UNINDENT# except DeserializationError as e : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# model_def = ModelDefinition . objects . get_by_natural_key ( * model_identifier . split ( '.' ) ) #NEWLINE# #UNINDENT# except ModelDefinition . DoesNotExist : #NEWLINE# #INDENT# raise e #NEWLINE# #UNINDENT# return model_def . model_class ( )