Fix Django 1.3 tests
Merge pull request #894 from sorenh/django13tests

Fixes Django 1.3 tests