HF RL Explorer

bulk update() does not work with plain F('...') expressions. Description

bulk update() does not work with plain F('...') expressions. Description: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). Repro: assign plain F(...) to some model instance field save with bulk update Example: Code highlighting: from exampleapp.models import SelfRef o =…

The task

Repro: assign plain F(...) to some model instance field save with bulk_update Example: Code highlighting: >>> from exampleapp.models import SelfRef >>> o = SelfRef.objects.all().first() >>> o.c8 = F('name') # model has char fields 'c8' and 'name' >>> SelfRef.objects.bulk_update([o], ['c8']) 1 >>> o.refresh_from_db()…

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