{"comment":{"url":"https://api.github.com/repos/exclusive-gix/cs2102-store/comments/10578009","html_url":"https://github.com/exclusive-gix/cs2102-store/commit/dbb6258d6060241bad3e29a95fe51c28c0c037ab#commitcomment-10578009","id":10578009,"user":{"login":"9gix","id":493668,"avatar_url":"https://avatars.githubusercontent.com/u/493668?v=3","gravatar_id":"","url":"https://api.github.com/users/9gix","html_url":"https://github.com/9gix","followers_url":"https://api.github.com/users/9gix/followers","following_url":"https://api.github.com/users/9gix/following{/other_user}","gists_url":"https://api.github.com/users/9gix/gists{/gist_id}","starred_url":"https://api.github.com/users/9gix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/9gix/subscriptions","organizations_url":"https://api.github.com/users/9gix/orgs","repos_url":"https://api.github.com/users/9gix/repos","events_url":"https://api.github.com/users/9gix/events{/privacy}","received_events_url":"https://api.github.com/users/9gix/received_events","type":"User","site_admin":false},"position":22,"line":20,"path":"transaction/views.py","commit_id":"dbb6258d6060241bad3e29a95fe51c28c0c037ab","created_at":"2015-04-05T16:50:34Z","updated_at":"2015-04-05T16:50:34Z","body":"It would be awesome to get the total price from SQL aggregate methods.\r\nDo you think it is possible?\r\n\r\nSomething like:\r\n\r\n    SELECT SUM(item.price * cartitem.quantity) \r\n    FROM item, cartitem\r\n    WHERE cartitem.object_id = item.id;\r\n\r\n(*But I have a bad feeling about this query.)"}}