Fix to remove warning in Django 1.5