From: https://bitbucket.org/wnielson/django-chronograph