#35434: prefetch_related_objects fails to cache UUID FKs when the string
representation of a UUID is used
-------------------------------------+-------------------------------------
Reporter: Selcuk Ayguney | Owner: Selcuk
| Ayguney
Type: Bug | Status: assigned
Component: Database layer | Version: dev
(models, ORM) |
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
-------------------------------------+-------------------------------------
Comment (by Simon Charette):
There's a difference between lookup against the database (e.g.
`filter(pet_id=str(pet.id))`) which performs implicit conversions and
direct model attribute assignments. I would argue that if you explicitly
assign the string representation of objects meant to be stored in a field
to a model instance you are effectively doing things wrong.
--
Ticket URL: <https://code.djangoproject.com/ticket/35434#comment:10>
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/0107018f49e5be80-e56e1091-ac0b-4ae0-8964-0b67c2f89cb7-000000%40eu-central-1.amazonses.com.