Clarified "get_db_prep_value" default result in docs/ref/models/fields.txt.

This commit is contained in:
Clifford Gama 2025-11-10 19:11:28 +02:00 committed by GitHub
parent a4f7674134
commit c135be349d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.