fix for 1.5
django 1.6 fixes