#NEWLINE# @ memoize #NEWLINE# def model_profile( model ) : #NEWLINE# #INDENT# '\n    Returns cacheops profile for a model\n    ' #NEWLINE# model_profiles = prepare_profiles ( ) #NEWLINE# app = model . _meta . app_label #NEWLINE# model_name = model . _meta . model_name #NEWLINE# for guess in ( ( '%s.%s' % ( app , model_name ) ) , ( '%s.*' % app ) , '*.*' ) : #NEWLINE# #INDENT# if ( guess in model_profiles ) : #NEWLINE# #INDENT# return model_profiles [ guess ] #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# return None