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