#36487: Database on commit error logging fails for partials
-------------------------------------+-------------------------------------
Reporter: krishna- | Owner: krishna-holvi
holvi |
Type: Bug | Status: assigned
Component: Database | Version: 5.2
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
The on commit handler here:
https://github.com/django/django/blob/main/django/db/backends/base/base.py#L763
accepts both callback functions and partials but the error logging has a
bug which expects property `__qualname__` on the callback method but this
doesn't work with partials.
A fix is implemented here: https://github.com/django/django/pull/19609
--
Ticket URL: <https://code.djangoproject.com/ticket/36487>
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 visit
https://groups.google.com/d/msgid/django-updates/01070197c1595b96-c873bb42-207d-4eac-9176-bcb2441263d4-000000%40eu-central-1.amazonses.com.