Fixed some tests that failed in Django 1.6

Found some info here: https://code.djangoproject.com/ticket/21339