Fix to get tests working with Django 1.7 in Python 3.4.