summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorVIZZARD-X <vigneshanandmay13@gmail.com>2025-11-26 14:06:20 +0530
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2026-04-14 14:32:08 +0300
commit3157285e27a426530ef571855e0e29c317e210df (patch)
tree90f58a2e72a2541fbbeb90909daa57fea5f37491 /docs
parent8d326336c5fba4740114fea5294a7b426c96d65c (diff)
Fixed #27150 -- Made base File objects truthy by default.
Diffstat (limited to 'docs')
-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