changes after update to Django 1.7