Fix testsuite for Django 1.7+ and postgres