0

django Queryset in reverse order

avatar
Oct. 27, 2020
How can I reverse django queryset result?

I tried mymodel.objects.all().reverse()

but its not working..
avatar
2019-12-23

Try using. mymodel.objects.all().order_by(-id)



Please Login to Comment