make it django 1.6 compatible