#31977: Transforms silently don't work in F and OuterRef expressions.
-------------------------------------+-------------------------------------
Reporter: Gordon Wrigley | Owner: nobody
Type: Uncategorized | Status: new
Component: Database layer | Version: 3.1
(models, ORM) |
Severity: Normal | Resolution:
Keywords: function, lookup, | Triage Stage:
transform, F, OuterRef | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Gordon Wrigley):
Incidentally (and for anyone who ends up here trying to find a work
around) functions work, so you can do
`Order.objects.filter(submitted_time__date=TruncDate("submitted_time"))`
for the OuterRef case you can annotate the transformed value onto the
outer queryset and OuterRef to the annotated field.
--
Ticket URL: <https://code.djangoproject.com/ticket/31977#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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.a3ad8afc35541778f0e729dac7b9f98d%40djangoproject.com.