Fix broken tests. Works on Django < 1.6