get query set django and sort it code example
Example 1: django desc order
Obj.objects.all().order_by('-id')
Example 2: query set
A QuerySet is a list of a dictionary of objects in your database.
Obj.objects.all().order_by('-id')
A QuerySet is a list of a dictionary of objects in your database.