Django Query: Return average monthly spend per user
Django Query: Return average monthly spend per user Question: Given a Django model which stores user transactions, how can I create a query that returns the average monthly spend for each user? My current solution queries all the transactions , iterates the result and calculates the averages for each user using a dictionary. I am …