fix testsuite warnings on Djago 1.7