Fix tests against Django 1.7