Callable storage on FileField fails to deconstruct when it returns default storage Description
Callable storage on FileField fails to deconstruct when it returns default storage Description: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). If the storage argument on a FileField is set to a callable that returns default storage, it is omitted from the deconstructed form of the field…
The task
If the storage argument on a FileField is set to a callable that returns default_storage, it is omitted from the deconstructed form of the field, rather than being included as a reference to the callable as expected. For example, given a model definition: from django.core.files.storage import FileSystemStorage,…
Part of Lego-X/Lego-RL-SWE-Bench-Verified.