mirror of
https://github.com/django/django.git
synced 2025-06-05 11:39:13 +00:00
Refs #22936 -- Doc'd Lookup.prepare_rhs.
This commit is contained in:
parent
ea596a52d9
commit
91cb2d0b48
@ -213,6 +213,14 @@ following methods:
|
|||||||
The name of this lookup, used to identify it on parsing query
|
The name of this lookup, used to identify it on parsing query
|
||||||
expressions. It cannot contain the string ``"__"``.
|
expressions. It cannot contain the string ``"__"``.
|
||||||
|
|
||||||
|
.. attribute:: prepare_rhs
|
||||||
|
|
||||||
|
Defaults to ``True``. When :attr:`rhs` is a plain value,
|
||||||
|
:attr:`prepare_rhs` determines whether it should be prepared for use as
|
||||||
|
a parameter in a query. In order to do so,
|
||||||
|
``lhs.output_field.get_prep_value()`` is called if defined, or ``rhs``
|
||||||
|
is wrapped in :class:`Value() <django.db.models.Value>` otherwise.
|
||||||
|
|
||||||
.. method:: process_lhs(compiler, connection, lhs=None)
|
.. method:: process_lhs(compiler, connection, lhs=None)
|
||||||
|
|
||||||
Returns a tuple ``(lhs_string, lhs_params)``, as returned by
|
Returns a tuple ``(lhs_string, lhs_params)``, as returned by
|
||||||
|
Loading…
x
Reference in New Issue
Block a user