django <1.6 regression fix