summaryrefslogtreecommitdiff
path: root/docs/releases/6.1.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/releases/6.1.txt')
-rw-r--r--docs/releases/6.1.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/releases/6.1.txt b/docs/releases/6.1.txt
index 00eaf5388d..77188e0c8e 100644
--- a/docs/releases/6.1.txt
+++ b/docs/releases/6.1.txt
@@ -500,6 +500,13 @@ Miscellaneous
primary key when a ``QuerySet``'s ordering has been forcibly cleared by
calling :meth:`~.QuerySet.order_by` with no arguments.
+* The :class:`~django.core.files.File` class now always evaluates to ``True``
+ in boolean contexts, rather than relying on the ``name`` attribute. The
+ built-in subclasses ``FieldFile``, ``UploadedFile``,
+ ``TemporaryUploadedFile``, ``InMemoryUploadedFile``, and
+ ``SimpleUploadedFile`` retain the previous behavior of evaluating based on
+ the ``name`` attribute.
+
.. _deprecated-features-6.1:
Features deprecated in 6.1