Trying to fix error with Django 1.6