django queryset last 10

Solutions on MaxInterview for django queryset last 10 by the best coders in the world

showing results for - "django queryset last 10"
Felix
23 Jul 2016
1last_ten = Messages.objects.filter(since=since).order_by('-id')[:10]
2last_ten_in_ascending_order = reversed(last_ten)
3