summaryrefslogtreecommitdiff
path: root/docs/releases
diff options
context:
space:
mode:
authorBen Cail <bcail@crossway.org>2024-03-26 11:25:29 -0400
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-05-21 07:28:12 +0200
commit0b33a3abc2ca7d68a24f6d0772bc2b9fa603744e (patch)
treee2e191d205a51a64ef9124e2eaa5a51c352f7eb6 /docs/releases
parent6c48eed2383eb50191b59a64036b75cb46ae178e (diff)
Fixed #35326 -- Added allow_overwrite parameter to FileSystemStorage.
Diffstat (limited to 'docs/releases')
-rw-r--r--docs/releases/5.1.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/docs/releases/5.1.txt b/docs/releases/5.1.txt
index 2def385f98..7579cc732f 100644
--- a/docs/releases/5.1.txt
+++ b/docs/releases/5.1.txt
@@ -210,7 +210,10 @@ Error Reporting
File Storage
~~~~~~~~~~~~
-* ...
+* The :attr:`~django.core.files.storage.FileSystemStorage.allow_overwrite`
+ parameter has been added to
+ :class:`~django.core.files.storage.FileSystemStorage`, to allow saving new
+ files over existing ones.
File Uploads
~~~~~~~~~~~~
@@ -467,6 +470,12 @@ Miscellaneous
* The ``check`` keyword argument of ``CheckConstraint`` is deprecated in favor
of ``condition``.
+* The undocumented ``OS_OPEN_FLAGS`` property of
+ :class:`~django.core.files.storage.FileSystemStorage` has been deprecated.
+ To allow overwriting files in storage, set the new
+ :attr:`~django.core.files.storage.FileSystemStorage.allow_overwrite` option
+ to ``True`` instead.
+
Features removed in 5.1
=======================