mirror of
https://github.com/django/django.git
synced 2025-11-19 19:24:46 +00:00
Clarified "get_db_prep_value" default result in docs/ref/models/fields.txt.
This commit is contained in:
parent
a4f7674134
commit
c135be349d
1 changed files with 2 additions and 2 deletions
|
|
@ -2523,8 +2523,8 @@ Field API reference
|
|||
.. method:: get_db_prep_value(value, connection, prepared=False)
|
||||
|
||||
Converts ``value`` to a backend-specific value. By default it returns
|
||||
``value`` if ``prepared=True`` and :meth:`~Field.get_prep_value` if is
|
||||
``False``.
|
||||
``value`` if ``prepared=True``, and :meth:`get_prep_value(value)
|
||||
<Field.get_prep_value>` otherwise.
|
||||
|
||||
See :ref:`converting-query-values-to-database-values` for usage.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue