Fix Django 1.3 tests

Many, many tests were failing in the Django 1.3 tox environments due to
some faulty import logic. This patch fixes them all.