Make tests passed on Django 1.5+