Changes between Version 1 and Version 2 of Ticket #35810, comment 2


Ignore:
Timestamp:
Oct 3, 2024, 6:01:27 PM (7 weeks ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35810, comment 2

    v1 v2  
    99    Select(
    1010        "messages",
    11         queryset=Message.objects.order_by("created_at")[0],
     11        queryset=Message.objects.order_by("created_at")[:1],
    1212        to_attr="lastest_message",
    1313    ),
     
    3535    lastest_message=Message.objects.filter(
    3636       chat_id=OuterRef("id"),
    37    ).order_by("created_at")[0]
     37   ).order_by("created_at")[:1]
    3838)
    3939}}}
Back to Top