mirror of
https://github.com/django/django.git
synced 2025-02-20 22:34:31 +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.