Deferred fields incorrect when following prefetches back to the "parent" object Description
Deferred fields incorrect when following prefetches back to the "parent" object Description: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). Given the following models: class User(models.Model): email = models.EmailField() kind = models.CharField( max length=10, choices= ("ADMIN", "Admin")…
The task
Given the following models: class User(models.Model): email = models.EmailField() kind = models.CharField( max_length=10, choices=[("ADMIN", "Admin"), ("REGULAR", "Regular")] ) class Profile(models.Model): full_name = models.CharField(max_length=255) user = models.OneToOneField(User, on_delete=models.CASCADE) I'd…
Part of Lego-X/Lego-RL-SWE-Bench-Verified.