HF RL Explorer

ForeignKey.validate() should validate using the base manager. Description

ForeignKey.validate() should validate using the base manager. Description: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). ForeignKey.validate() should validate using the base manager instead of the default manager. Consider the models: class ArticleManager(models.Manage): def get…

The task

ForeignKey.validate() should validate using the base manager instead of the default manager. Consider the models: class ArticleManager(models.Manage): def get_queryset(self): qs = super().get_queryset() return qs.filter(archived=False) class Article(models.Model): title = models.CharField(max_length=100) archived =…

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