Fix Django 1.7 incompatiblity

as per https://docs.djangoproject.com/en/dev/ref/applications/#applications-troubleshooting