Re: Model Arithmetic Operation

2020-06-03 Thread Dumba Classics
Inbox me with your objective on what you want to accomplish and give me the the piece of code trying to emulate your two models and then I will look into your code and give the Solution if I can. Sincerely D.C On Wed, Jun 3, 2020 at 5:12 AM Hella Nick wrote: > >- > >Niggers are clearly

Re: Model Arithmetic Operation

2020-06-02 Thread Hella Nick
- Niggers are clearly not suited for the job. Ifeanyi Chielo 于2020年6月3日周三 上午7:43写道: > Dear all, > > Hello, please can someone help me with the code to subtract 'b' from 'a' > as shown below > > > a = Soapprod.objects.aggregate(Sum('Serial_White_Guava')) > > > > b =

Model Arithmetic Operation

2020-06-02 Thread Ifeanyi Chielo
Dear all, Hello, please can someone help me with the code to subtract 'b' from 'a' as shown below a = Soapprod.objects.aggregate(Sum('Serial_White_Guava')) b = Soapsales.objects.aggregate(Sum('Serial_White_Guava')) class Soapprod (models.Model): id =