#11541: F() expressions don't allow assignment of Foreign Key values on
instances
-------------------------------------+-------------------------------------
Reporter: Russell Keith-Magee | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 1.1-beta
(models, ORM) |
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
-------------------------------------+-------------------------------------
Comment (by Abhijeet Viswa):
I gave a shot at fixing this ticket. However, I got stuck real fast. F
expressions aren't resolved until the queryset is evaluated. However, the
test to check if the right-value is an instance of the forward relation's
class is performed during assignment. The only solution I could think of
is to defer the test for F expressions until queryset evaluation.
Maintainers, would this be the best approach?
--
Ticket URL: <https://code.djangoproject.com/ticket/11541#comment:6>
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/066.eabfe508ee27eb6a8b6a70f0ea0e146c%40djangoproject.com.