jimfunk / django-postgresql-netfields

Proper INET and CIDR fields for Django running on PostgreSQL
BSD 3-Clause "New" or "Revised" License
154 stars 65 forks source link

Support for psycopg3 #121

Closed c-w closed 1 year ago

c-w commented 1 year ago

With the release of Django 4.2, there's now official support for psycopg3 in Django and psycopg2 will eventually be deprecated (see release notes).

The use of psycopg2 seems pretty well encapsulated in this library so I wonder if there's a desire to also support the new psycopg3? I can work on a pull request for this if required.

jimfunk commented 1 year ago

Yes, psycopg 3.x is probably a good idea. I have been using it in other, non-Django projects.

If you wanted to take a stab at it, go ahead. I should be able to get it going myself, but it probably won't be in the next couple of weeks.

c-w commented 1 year ago

Great, thank you. As a conversation starter, I opened a pull request which passes the tests on my machine. Looking forward to your inputs!

jimfunk commented 1 year ago

Thanks for the PR.