HF RL Explorer

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

QuerySet.ordered property is incorrect for GROUP BY queries on models with Meta.ordering. Description: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). Using the annotate function on a queryset doesn't keep the default ordering set in model's meta class. A property should say whether the…

The task

Using the annotate function on a queryset doesn't keep the default ordering set in model's meta class. A property should say whether the queryset will be ordered or not. I wanted to use the qs.ordered property for this but it seems to stay truthy, even if the resulting SQL query will not have an ORDER BY clause.…

Part of Lego-X/Lego-RL-SWE-Bench-Verified.