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