#NEWLINE# def get_model( app_label , model_name ) : #NEWLINE# #INDENT# for model in models . get_models ( models . get_app ( app_label ) ) : #NEWLINE# #INDENT# if ( model_name == model . _meta . object_name ) : #NEWLINE# #INDENT# return model #NEWLINE# #UNINDENT# #UNINDENT# raise ValueError ( ( 'Model %s.%s does not exist' % ( app_label , app_label ) ) )