You can use methods to do that On Mon, Sep 2, 2019 at 7:10 PM Muhammed Bilal <mmb...@gmail.com> wrote:
> > I have a model some thing like this > > class Add(models.Model): > Budget = models.IntegerField() > Expense = models.IntegerField() > > Now I would like to do calculations for example Sum , subtracting two > fields and multiplying them (*budget - Expense) .. > (**budget + Expense) (**budget * Expense) kindly help me . * > > -- > You received this message because you are subscribed to the Google Groups > "Django developers (Contributions to Django itself)" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-developers+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/ed230914-03be-4de2-b626-315a86edadea%40googlegroups.com > <https://groups.google.com/d/msgid/django-developers/ed230914-03be-4de2-b626-315a86edadea%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Best Regards, MJU ZAID Student (2016 batch) Department of Computer Science & Engineering University of Moratuwa -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CADKnJ4NJFi214hC1spWTd%2B0gRCWb%3DfSukYWHb%3D1ptjLxSz1Tbg%40mail.gmail.com.