[Answer]-How can I make my query set order by descending in django based on auto increment id field

1👍

You haven’t shown your model but by the looks of it you just need to remove the logdetail in your order_by:

logdetail.objects.all().order_by('-id')

Leave a comment