#27414: Document that aliasing ForeignKey fields in F expressions returns pk
values, not model instances
--------------------------------------+------------------------------------
Reporter: MikiSoft | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.10
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Tim Graham):
* component: Database layer (models, ORM) => Documentation
* type: Bug => Cleanup/optimization
* stage: Unreviewed => Accepted
Comment:
I'm not sure if that can be changed easily, for one, it will be backwards-
incompatible for anyone relying on the current behavior. Feel free to get
other opinions on the DevelopersMailingList. Qualifying as a documentation
change for now.
It would be nice to describe your use case in some more detail to decide
whether or not Django must provide a way for aliasing to return instances.
--
Ticket URL: <https://code.djangoproject.com/ticket/27414#comment:2>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.a34ead42bfc05c1063ccc34e1e871eca%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.