Fix to enable running doctests with pytest_django