Fixing updating a querydict in 1.4.x raising a TypeError