def _get_model(model_identifier):
 try:
  Model = models.get_model(*model_identifier.split('.'))
 except TypeError:
  Model = None
 if (Model is None):
  raise base.DeserializationError(("Invalid model identifier: '%s'" % model_identifier))
 return Model

def _get_model ( model_identifier ) : try : Model = models . get_model ( * model_identifier . split ( '.' ) ) except TypeError : Model = None if ( Model is None ) : raise base . DeserializationError ( ( "Invalid model identifier: '%s'" % model_identifier ) ) return Model
helper to look up a model from an "app_label .