#26743: DeserializationError local variable 'pk' referenced before assignment
(which hides real error)
--------------------------------------+------------------------------------
Reporter: Lakin Wecker | Owner: nobody
Type: Bug | Status: new
Component: Core (Serialization) | Version: 1.9
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Baptiste Mispelon):
* has_patch: 0 => 1
Comment:
I managed to reproduce the described issue using the steps described in
comment:2 (using dumpdata/loaddata).
With Python 3's chained exceptions it's a bit easier to see what happens
but it wasn't too complicated or invasive to fix the issue properly so I
think it's worth it.
I have a [https://github.com/django/django/pull/12212 PR with some tests]
ready for review.
--
Ticket URL: <https://code.djangoproject.com/ticket/26743#comment:4>
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/069.3b78464c717a96ebaef9ea3e6ab68131%40djangoproject.com.