HF RL Explorer

DEFAULT AUTO FIELD subclass check fails for subclasses of BigAutoField and SmallAutoField. Description

DEFAULT AUTO FIELD subclass check fails for subclasses of BigAutoField and SmallAutoField. Description: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). Set DEFAULT AUTO FIELD = "example.core.models.MyBigAutoField" , with contents of example.core.models: from django.db import models class…

The task

Set DEFAULT_AUTO_FIELD = "example.core.models.MyBigAutoField" , with contents of example.core.models: from django.db import models class MyBigAutoField(models.BigAutoField): pass class MyModel(models.Model): pass Django then crashes with: Traceback (most recent call last): File "/..././manage.py", line 21, in…

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