Re: calculating two integers fields in django..

2019-09-02 Thread Adam Johnson
Hi! I think you've found the wrong mailing list for this post. This mailing list is for the development of Django itself, not for support using Django. This means the discussions of bugs and features in Django itself, rather than in your code using it. People on this list are unlikely to answer yo

Re: calculating two integers fields in django..

2019-09-02 Thread Manoj Jadhav Patil
If you are using MySQL. You can use virtual fields option. Regards, Manoj On Mon, Sep 2, 2019, 9:20 PM Uzama Zaid wrote: > You can use methods to do that > > On Mon, Sep 2, 2019 at 7:10 PM Muhammed Bilal wrote: > >> >> I have a model some thing like this >> >> class Add(models.Model): >>B

Re: calculating two integers fields in django..

2019-09-02 Thread Uzama Zaid
You can use methods to do that On Mon, Sep 2, 2019 at 7:10 PM Muhammed Bilal 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 , subtractin

calculating two integers fields in django..

2019-09-02 Thread Muhammed Bilal
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 + Expe