parameters: (type_name)
return_statement: return apps.get_model(use_app, model_str)
docstring: Return model class for a given type name.
docstring_summary: Return model class for a given type name.
docstring_tokens: Return model class for a given type name .
function: def get_model_for_type(type_name):
      """
      Return model class for a given type name.
      """
      model_str = underscore_to_camelcase(type_name)
      if model_str == 'User':
          use_app = 'auth'
      else:
          use_app = 'main'
      return apps.get_model(use_app, model_str)
function_tokens: def get_model_for_type ( type_name ) : model_str = underscore_to_camelcase ( type_name ) if model_str == 'User' : use_app = 'auth' else : use_app = 'main' return apps . get_model ( use_app , model_str )