Fix pytest-django pinning and allow some DB access