order by django desc and only 5 objects code example Example: django desc order Obj.objects.all().order_by('-id')