Making it django 1.6 complaint