Fixed #31989 -- Fixed return value of django.core.files.locks.lock()/unlock() on POSIX systems.

This commit is contained in:
Hasan Ramezani 2020-09-11 11:48:40 +02:00 committed by Mariusz Felisiak
parent 580a4341cb
commit 7be6a6a4d6
3 changed files with 28 additions and 5 deletions

View file

@ -504,6 +504,10 @@ Miscellaneous
distinguishes inherited field instances across models. Additionally, the
ordering of such fields is now defined.
* The undocumented ``django.core.files.locks.lock()`` function now returns
``False`` if the file cannot be locked, instead of raising
:exc:`BlockingIOError`.
.. _deprecated-features-3.2:
Features deprecated in 3.2