I have two query sets that look like this:
product_first = Reports.objects.filter(product='product1', type='week', profile__team=team).select_related('profile')
product_second = Reports.objects.filter(product='product2', type='week', profile__team=team).select_related('profile')
Each of those share obj.profile.user.username, and have other similiar attributes (obj.total, for instance) - I am trying to end up with a query set based on obj.profile.user.username, but with the obj.total being product_first.total + product_second.total.
Example of that table I'm querying:
user_id total total_items product type
1 150 15 product1 week
1 180 19 product2 week
user_id, you want toe sum of the totals? What if there are multipleproduct1s and/orproduct2s for that user?