HF RL Explorer

Prefetch related is not working when used GFK for model that uses UUID field as PK. Description

Prefetch related is not working when used GFK for model that uses UUID field as PK. Description: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). How to reproduce: create model with UUID as primary key class Foo(models.Model): id = models.UUIDField(primary key=True, default=uuid.uuid4…

The task

How to reproduce: create model with UUID as primary key class Foo(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) ... create another model with GFK to model Foo class Bar(models.Model): foo_content_type = models.ForeignKey( ContentType, related_name='actor',…

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