https://github.com/mozilla/django-badger/blob/master/badger/views.py#L97