palewire / django-calaccess-campaign-browser

A Django app to refine, review and republish campaign finance data drawn from the California Secretary of State’s CAL-ACCESS database
http://django-calaccess-campaign-browser.californiacivicdata.org
MIT License
17 stars 12 forks source link

Add a management command that combines committee summary totals and saves them to a new model #122

Open aboutaaron opened 9 years ago

aboutaaron commented 9 years ago

A lot of the frontend work currently sits on loading totals and averages. These are all mgmt commands that need to be stored at the db layer.

We need to adjust our models to add this properties and then rope them in the database command with either an overwritten save() or with a management command.

palewire commented 9 years ago

This could be standard summary fields like total contributions summed by year, cycle and overall.