Hi everyone, I hope you are fine.
I have two fields with the name of price and discountedPrice in a model.
The thing that I want is to get the values of these two fields on their change to calculate the discount percent from them and showing the discount percent before the admin clicks on the save button.
I will thank anyone to give me a piece of guidance about this matter.
This is a repeat of your discussion at get field value on its change in django models.
Please do not make multiple postings on the same topic. (See FAQ - Django Forum)
If you have additional questions about the assistance you have received on that topic, continue the conversation there.
OK, dear Mr. Whitesell, I have written another topic because I wanted to modify the title to “realtime django model field to calculate and show text before saving”.
So I will continue our discussion there.