Fix tests run against Django 1.5