mozilla/affiliates — pull request #108 by Osmose (2012-04-24 00:44:21+00:00)
Title: Stats dashboard

I am so sorry for whoever ends up reviewing this. :P

This adds a bunch of code that will eventually be extracted into a library once we can make it more portable. It tracks statistics in the database and presents them in a pretty format. The structure of the code mimics that of the Django Admin in order to present a similar API and take advantage of the good abstractions.

There are a few major chunks that come along with this:

* Clickstats have been converted to use datetime fields, as the stats code only works off of models with a datetime field.
* I've added a very useful testing library called FactoryBoy. It'll help us eventually get rid of our test fixtures and embed test data within the relevant tests.
* Due to some issues with removing a unique constraint, I've updated south to the latest version.
* This will need some performance testing on -dev to see how it handles a couple million rows.