def save(self, *args, **kwargs):
        "Set Rate"
        instance = super(OrderedProductForm, self).save(commit=False)
        if 'product' in self.cleaned_data and self.cleaned_data['product']:
            instance.rate = self.cleaned_data['product'].sell_price
            instance.rate_display = instance.rate

        return instance
dataset/ETHPy150Open treeio/treeio/treeio/sales/forms.py/OrderedProductForm.save/original