Leaklens

django__django-13417

QuerySet.ordered property is incorrect for GROUP BY queries on models with Meta.ordering.

Verdict: the issue points to the file or function that was changed (Tier B).

Meta.ordering doesn't affect GROUP BY queries after 0ddb4ebf7bfcc4730c80a772dd146a49ef6895f6 (which was deprecated in 1b1f64ee5a78cc217fead52cbae23114502cf564). We should adjust QuerySet.ordered.

The two checks disagreed (stated fix vs. points to it); the lower reading shown: “Meta.ordering doesn't affect GROUP BY queries after 0ddb4ebf7bfcc4730c80a772dd146a49ef6895f6 (which was deprecated in 1b1f64ee5a78cc217fead52cbae2311…”

All SWE-bench Verified tasks · more django/django tasks · How the check works