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')
Source:stackexchange.com