django-1.5-fix fixes for django-1.5 version