korfuri / django-prometheus

Export Django monitoring metrics for Prometheus.io
Apache License 2.0
1.44k stars 244 forks source link

Refactor how we provide cursor factory #376

Closed asherf closed 1 year ago

asherf commented 1 year ago

New version of django, ignore the cursor_factory connection param and override it after the connection is created: see fix here: https://github.com/django/django/commit/0bc2bbf041df40a6ecb6262b2e5f3bb659dd8da8 the fix will be in 4.2.1 (unrelease) https://github.com/django/django/commit/0bc2bbf041df40a6ecb6262b2e5f3bb659dd8da8#diff-016044d83a0d01da55207c3122eb813b92093295894595570a7fb563546f2a32R22

at which point, this PR can be reverted.

follow up for https://github.com/korfuri/django-prometheus/pull/351