fix small bug with django 1.4