Users of django-sql-dashboard trying to update to psycopg3 will get a module not found error caused by the following import in views.py:
from psycopg2.extensions import quote_ident
(which is also unused, I think :smile:)
what this PR aims to improve
addopts in pytest.ini: When I ran the tests for the first time (in docker) there was a problem with the import of pytest_use_postgresql so I've modify it.
why
Support for psycopg2 is likely to be deprecated and removed at some point in the future.
(https://django.readthedocs.io/en/latest/releases/4.2.html#psycopg-3-support)django-sql-dashboard
trying to update to psycopg3 will get a module not found error caused by the following import inviews.py
:(which is also unused, I think :smile:)
what this PR aims to improve
addopts
inpytest.ini
: When I ran the tests for the first time (in docker) there was a problem with the import ofpytest_use_postgresql
so I've modify it.views.py
.Thanks for this repo!