Fixed #31967 -- Doc'd consequences of resolving an output_field for Value().
This commit is contained in:
parent
502e75f9ed
commit
9369f0cebb
|
@ -277,7 +277,10 @@ Models
|
|||
:py:class:`float`, :py:class:`int`, :py:class:`str`,
|
||||
:py:class:`datetime.date`, :py:class:`datetime.datetime`,
|
||||
:py:class:`datetime.time`, :py:class:`datetime.timedelta`,
|
||||
:py:class:`decimal.Decimal`, and :py:class:`uuid.UUID` instances.
|
||||
:py:class:`decimal.Decimal`, and :py:class:`uuid.UUID` instances. As a
|
||||
consequence, resolving an ``output_field`` for database functions and
|
||||
combined expressions may now crash with mixed types when using ``Value()``.
|
||||
You will need to explicitly set the ``output_field`` in such cases.
|
||||
|
||||
* The new :meth:`.QuerySet.alias` method allows creating reusable aliases for
|
||||
expressions that don't need to be selected but are used for filtering,
|
||||
|
|
Loading…
Reference in New Issue