#32151: Invalid query SQL created when combining __in and F() in filter
-------------------------------------+-------------------------------------
Reporter: Beda Kosata | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: 3.1
(models, ORM) |
Severity: Normal | Resolution: duplicate
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Beda Kosata):
Replying to [comment:2 Simon Charette]:
> Not sure if this was ever explicitly supported, any reason you don't use
`author=F('publisher__authors')`?
Thanks for the hint. I was thinking about it yesterday after I submitted
the bug report and wanted to test it today (my actual use case is more
complicated than the test code), but you were faster :)
--
Ticket URL: <https://code.djangoproject.com/ticket/32151#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/064.4cc2e4e43b9067bcecca6f1af1cf6e97%40djangoproject.com.