#NEWLINE# def _get_model( model_identifier ) : #NEWLINE# #INDENT# '\n    Helper to look up a model from an "app_label.module_name" string.\n    ' #NEWLINE# try : #NEWLINE# #INDENT# Model = models . get_model ( * model_identifier . split ( '.' ) ) #NEWLINE# #UNINDENT# except TypeError : #NEWLINE# #INDENT# Model = None #NEWLINE# #UNINDENT# if ( Model is None ) : #NEWLINE# #INDENT# raise base . DeserializationError ( ( "Invalid model identifier: '%s'" % Model ) ) #NEWLINE# #UNINDENT# return Model