Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django sort queryset

.order_by("id") # id
.order_by("-id") # order by id in reverse order
querySetName = YourModel.objects.filter(field_one="some value").order_by("-id")
 
PREVIOUS NEXT
Tagged: #django #sort #queryset
ADD COMMENT
Topic
Name
5+9 =