HF RL Explorer

delete() on instances of models without any dependencies doesn't clear PKs. Description

delete() on instances of models without any dependencies doesn't clear PKs. Description: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). Deleting any model with no dependencies not updates the PK on the model. It should be set to None after .delete() call. See…

The task

Deleting any model with no dependencies not updates the PK on the model. It should be set to None after .delete() call. See Django.db.models.deletion:276-281. Should update the model line 280.

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