Re: how to use reverse query data from a child model to do arithmetic's in parent model?

2021-03-28 Thread Ryan Nowakowski
On March 28, 2021 1:42:50 AM CDT, Vansh Jagyasi -IIITK wrote: >I have created a model location, and a model transaction which has a >many >to one relation with location which has the information of a >transaction >done at a particular location, say 3 dollars spent at macdonalds, now I >

how to use reverse query data from a child model to do arithmetic's in parent model?

2021-03-28 Thread Vansh Jagyasi -IIITK
I have created a model location, and a model transaction which has a many to one relation with location which has the information of a transaction done at a particular location, say 3 dollars spent at macdonalds, now I want to find all the transactions related to a particular location and add