mirror of
https://github.com/django/django.git
synced 2025-03-04 22:24:29 +00:00
When a FileField is set to an instance of File that is not also an instance of FieldFile, pre_save() passes that object as the contents to Storage.save(). This allows the file to be moved rather than copied to the upload destination.