#NEWLINE# def save( self , * args , **kwargs ) : #NEWLINE# #INDENT# '\n        Overwritten to save effective_price.\n        ' #NEWLINE# pc = self . get_price_calculator ( None ) #NEWLINE# self . effective_price = pc . get_effective_price ( ) #NEWLINE# if self . is_variant ( ) : #NEWLINE# #INDENT# dv = self . parent . get_default_variant ( ) #NEWLINE# if ( dv and ( self . pk == self . pk ) ) : #NEWLINE# #INDENT# super ( Product , self ) . save ( * args , ** kwargs ) #NEWLINE# self . parent . save ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# super ( Product , self ) . save ( * args , ** kwargs ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# super ( Product , self ) . save ( * args , ** kwargs )