I’m trying to build a swimming pool water test app as my first project but stumbled on a problem - I don’t know how to do mathematical operations between model fields. So, I have a function in models.py:
hello, i am new to django and i am enjoying it. i needhelp with a trivial problem- i have a django model with items that have unit_price and quantity and total. i want the total to be calculated automatically on the admin site after i insert the unit_price and the quantity. how to implement
Are you talking about changing it on the page before saving those values? Or are you talking about clicking “save” and having that process update what’s shown on the page?