Re: Custom Join Conditions

2017-09-04 Thread Adam Johnson
The annotate(foo=FilteredRelation(...)) API LGTM too, and yes I agree on the rationale on alias over to_attr. On 4 September 2017 at 10:25, Anssi Kääriäinen wrote: > I really like the .annotate() version. The way this feature works with > .annotate() is easy to understand if you understand how e

Re: Custom Join Conditions

2017-09-04 Thread Anssi Kääriäinen
I really like the .annotate() version. The way this feature works with .annotate() is easy to understand if you understand how existing .annotate() functions work. But, if we go with this approach, it might look a bit strange if we don't do an automatic select_related(). On the other hand, there