def save(self):
        """
        Save the discount (or do nothing if no discount code has been given)
        """
        if 'discount' in self.cleaned_data:
            self.cleaned_data['discount'].add_to(self.order)
dataset/ETHPy150Open matthiask/plata/plata/shop/forms.py/DiscountForm.save/original