#NEWLINE# def _add_to_cache( self , ct ) : #NEWLINE# #INDENT# 'Insert a ContentType into the cache.' #NEWLINE# model = ct . model_class ( ) #NEWLINE# key = ( ct . _meta . app_label , model . _meta . object_name . lower ( ) ) #NEWLINE# self . __class__ . _cache [ key ] = ct #NEWLINE# self . __class__ . _cache [ ct . id ] = ct