Make compatible with latest Django

from https://bitbucket.org/romanalexander/django-tracking