restore support of django 1.3

restore support of django 1.3