1
0
mirror of https://github.com/django/django.git synced 2025-07-20 17:49:12 +00:00

[3.0.x] Fixed #31368 -- Doc'd 'expression' parameter of Field.from_db_value()/Expression.convert_value().

Backport of 6929f13254ce42b0a4ee5d677591d47b61023ae7 from master
This commit is contained in:
Hasan Ramezani 2020-03-17 23:30:20 +01:00 committed by Mariusz Felisiak
parent 5c1ad59a0e
commit aea9344139
2 changed files with 4 additions and 0 deletions

View File

@ -991,6 +991,8 @@ calling the appropriate methods on the wrapped expression.
A hook allowing the expression to coerce ``value`` into a more A hook allowing the expression to coerce ``value`` into a more
appropriate type. appropriate type.
``expression`` is the same as ``self``.
.. method:: get_group_by_cols(alias=None) .. method:: get_group_by_cols(alias=None)
Responsible for returning the list of columns references by Responsible for returning the list of columns references by

View File

@ -2024,6 +2024,8 @@ Field API reference
backend already returns the correct Python type, or the backend itself backend already returns the correct Python type, or the backend itself
does the conversion. does the conversion.
``expression`` is the same as ``self``.
See :ref:`converting-values-to-python-objects` for usage. See :ref:`converting-values-to-python-objects` for usage.
.. note:: .. note::