Skip to content

Commit

Permalink
[3.0.x] Fixed #31368 -- Doc'd 'expression' parameter of Field.from_db…
Browse files Browse the repository at this point in the history
…_value()/Expression.convert_value().

Backport of 6929f13 from master
  • Loading branch information
hramezani authored and felixxm committed Mar 18, 2020
1 parent 5c1ad59 commit aea9344
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/ref/models/expressions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,8 @@ calling the appropriate methods on the wrapped expression.
A hook allowing the expression to coerce ``value`` into a more
appropriate type.

``expression`` is the same as ``self``.

.. method:: get_group_by_cols(alias=None)

Responsible for returning the list of columns references by
Expand Down
2 changes: 2 additions & 0 deletions docs/ref/models/fields.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2024,6 +2024,8 @@ Field API reference
backend already returns the correct Python type, or the backend itself
does the conversion.

``expression`` is the same as ``self``.

See :ref:`converting-values-to-python-objects` for usage.

.. note::
Expand Down

0 comments on commit aea9344

Please sign in to comment.