Revert "Upgrade to django 1.6.4 (bug 1005911)"

This reverts commit ee1c2fae26cb48fb2335b0b0c742214026e4a0fc.