added fix for known django / postgres bug