def save(self, *args, **kwargs):
if self.discountType != self.DiscountType.flatPrice:<EOL><INDENT>self.onlinePrice = None<EOL>self.doorPrice = None<EOL><DEDENT>if self.discountType != self.DiscountType.dollarDiscount:<EOL><INDENT>self.dollarDiscount = None<EOL><DEDENT>if self.discountType != self.DiscountType.percentDiscount:<EOL><INDENT>self.percentDiscount = None<EOL>self.percentUniversallyApplied = False<EOL><DEDENT>super(DiscountCombo, self).save(*args, **kwargs)<EOL>
Don't save any passed values related to a type of discount
that is not the specified type