Fix testsuite for Django 1.7+ and postgres
Merge pull request #1 from coagulant/django1.7

Fix testsuite for Django 1.7+ and postgres