Hi Paulo,
Have you opened a ticket on Trac <https://code.djangoproject.com/> for this
yet? If not, please do so. This mailing list isn't really for verifying
bugs. That said, does the query work if you provide an actual alias for the
aggregate?
*Company.objects.annotate(max_pk=Max('employee__pk')).filter(employee__pk=F('max_pk'))*
I suspect there's an ordering issue when doing field resolving that's not
checking the annotated_select dict first. Maybe. Open up a ticket on Trac
and we can discuss further there.
--
You received this message because you are subscribed to the Google Groups
"Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/9999e59a-d885-4178-9458-3fd149145369%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.