Changes between Initial Version and Version 1 of Ticket #36352, comment 10


Ignore:
Timestamp:
Apr 29, 2025, 12:10:37 AM (4 months ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36352, comment 10

    initial v1  
    33In 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.
    44
    5 For example, what should `annotate(foo=F('foo__name')).filter(foo__name="Bar")` resolve to or surface as error?
     5For 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?
    66
Back to Top