Changes between Initial Version and Version 1 of Ticket #36352, comment 10
- Timestamp:
- Apr 29, 2025, 12:10:37 AM (4 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #36352, comment 10
initial v1 3 3 In other words I would expect calls of the form `Mapping.objects.annotate(foo=F('foo__name'))` and `Mapping.objects.annotate(foo_id=F('foo_id'))` to always be problematic to some extent even when values is used as they turn follow up references to such annotations ambiguous. 4 4 5 For example, what should `annotate(foo=F('foo__name')).filter(foo__name="Bar")` resolve to or surface as error ?5 For example, what should `annotate(foo=F('foo__name')).filter(foo__name="Bar")` resolve to or surface as error now that `foo` is no longer a `ForeignKey(Foo)` in the context of the query? 6 6