HF RL Explorer

Ordering problem in admin.RelatedFieldListFilter and admin.RelatedOnlyFieldListFilter Description

Ordering problem in admin.RelatedFieldListFilter and admin.RelatedOnlyFieldListFilter Description: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). RelatedFieldListFilter doesn't fall back to the ordering defined in Model. meta.ordering. Ordering gets set to an empty tuple in…

The task

RelatedFieldListFilter doesn't fall back to the ordering defined in Model._meta.ordering. Ordering gets set to an empty tuple in ​https://github.com/django/django/blob/2.2.1/django/contrib/admin/filters.py#L196 and unless ordering is defined on the related model's ModelAdmin class it stays an empty tuple. IMHO it…

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