fix another django 1.5 incompatibility