#34466: Django 4.2 overwrites user-specified psycopg cursor_factory
-------------------------------------+-------------------------------------
Reporter: Anders Kaseorg | Owner: Anders
| Kaseorg
Type: Bug | Status: assigned
Component: Database layer | Version: 4.2
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):
* needs_better_patch: 0 => 1
* severity: Normal => Release blocker
* needs_docs: 0 => 1
Comment:
Replying to [comment:2 Florian Apolloner]:
> Assuming we fix this we should also make it more pythonic (and I guess I
am at fault for it being like it is now) and not check for `is True` but
only truthiness.
We use `is True` intentionally, to avoid errors when passing wrong truthy
values, e.g.`"server_side_binding": os.environ.get("USE_SSB")` (where
`os.environ.get("USE_SSB")` returns `"False"`).
--
Ticket URL: <https://code.djangoproject.com/ticket/34466#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701875a00ab02-cb8136ae-d437-49e2-909b-32dee11cc82a-000000%40eu-central-1.amazonses.com.