Changes between Version 1 and Version 2 of Ticket #35810, comment 2
- Timestamp:
- Oct 3, 2024, 6:01:27 PM (7 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35810, comment 2
v1 v2 9 9 Select( 10 10 "messages", 11 queryset=Message.objects.order_by("created_at")[ 0],11 queryset=Message.objects.order_by("created_at")[:1], 12 12 to_attr="lastest_message", 13 13 ), … … 35 35 lastest_message=Message.objects.filter( 36 36 chat_id=OuterRef("id"), 37 ).order_by("created_at")[ 0]37 ).order_by("created_at")[:1] 38 38 ) 39 39 }}}