SectorLabs / django-postgres-extra

Bringing all of PostgreSQL's awesomeness to Django.
MIT License
695 stars 96 forks source link

Fix automatic hstore extension creation not working on Django 4.2 or newer #245

Closed Photonios closed 3 months ago

Photonios commented 3 months ago

The following change broke the auto setup: https://github.com/django/django/commit/d3e746ace5eeea07216da97d9c3801f2fdc43223

This breaks because the call to pscygop2.extras.register_hstore is now conditional. Before, it would be called multiple times with empty OIDS, when eventually our auto registration would kick in and psycopg2 would fetch the OIDs itself.