django-1.6 fix
django 1.6 support