fix error in set current location for django 1.4