I am currently using django-reversion to track a model Account which has a field total_spent.
Overtime this field gets updated whenever an accounts spends money. My goal is to retrieve the value of total_spent between X and Y, which are both datetime instances.
How can I do so efficiently?
You'd have something like this: given you have a Django model and two time fields, get their elapsed time difference:
and then use total_spent as yet another property of that model.