django 1_6 compatibility