Apr-17-2024, 08:52 AM
It seems like you're encountering an issue with sorting your Django model objects in descending order based on the receipe_view_count field. Your query Receipe.objects.all().order_by('-receipe_view_count') should indeed return the records in descending order based on the receipe_view_count field.