Hi all, Let's assume I've the classic blog post with multiple comments model. I'm trying to get a list of posts each annotated with its last comment (or at least a single field from it).
The closest I've gotten is via: Post.objects.annotate(last_comment=F('comment__text')) But this just returns the body for the first commend, and I explicitly want the last. Am I missing something pretty obvious? Or is there some smart way of doing this that I'm failing to see? Thanks, -- Hugo Osvaldo Barrera -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1440147959.1057694.362072169.7554C314%40webmail.messagingengine.com. For more options, visit https://groups.google.com/d/optout.