#NEWLINE# def setup_variation_cache( self ) : #NEWLINE# #INDENT# self . _variation_cache = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for member in self . productvariation_set . all ( ) : #NEWLINE# #INDENT# key = key . unique_option_ids #NEWLINE# self . _variation_cache [ key ] = member