📜  django queryset last 10 - Python 代码示例
📅  最后修改于: 2022-03-11 14:46:44.526000             🧑  作者: Mango
代码示例1
last_ten = Messages.objects.filter(since=since).order_by('-id')[:10]
last_ten_in_ascending_order = reversed(last_ten)