HF RL Explorer

Self referencing foreign key doesn't correctly order by a relation " id" field. Description

Self referencing foreign key doesn't correctly order by a relation " id" field. Description: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). Initially discovered on 2.2.10 but verified still happens on 3.0.6. Given the following models: class OneModel(models.Model): class Meta: ordering =…

The task

Initially discovered on 2.2.10 but verified still happens on 3.0.6. Given the following models: class OneModel(models.Model): class Meta: ordering = ("-id",) id = models.BigAutoField(primary_key=True) root = models.ForeignKey("OneModel", on_delete=models.CASCADE, null=True) oneval = models.BigIntegerField(null=True)…

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