Fixed django-1.7 test warnings