Allow QuerySet.in bulk() for fields with total UniqueConstraints. Description
Allow QuerySet.in bulk() for fields with total UniqueConstraints. Description: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). If a field is unique by UniqueConstraint instead of unique=True running in bulk() on that field will fail. Consider: class Article(models.Model): slug =…
The task
If a field is unique by UniqueConstraint instead of unique=True running in_bulk() on that field will fail. Consider: class Article(models.Model): slug = models.CharField(max_length=255)
Part of Lego-X/Lego-RL-SWE-Bench-Verified.