upgrade for django 1.4.8