{{{
A Lookup is a generic class to implement lookups. A lookup is a query
expression with a left-hand side, lhs; a right-hand side, rhs; and a
lookup_name that is used to produce a boolean comparison between lhs and
rhs such as lhs in rhs or lhs > rhs.
The notation to use a lookup in an expression is
<lhs>__<lookup_name>=<rhs>.
**This class doesn’t follow the Query Expression API** since it has =<rhs>
on its construction: lookups are always the end of a lookup expression.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31122>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
Comment:
Agreed, we should clarify how the `Lookup` class follow the Query
Expression API, because it implements `as_sql()` and `as_vendorname()`.
--
Ticket URL: <https://code.djangoproject.com/ticket/31122#comment:1>
--
Ticket URL: <https://code.djangoproject.com/ticket/31122#comment:2>
* owner: nobody => Rohit Jha
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/31122#comment:3>
* owner: Rohit Jha => (none)
* status: assigned => new
--
Ticket URL: <https://code.djangoproject.com/ticket/31122#comment:4>
* owner: (none) => Rohit Jha
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/31122#comment:5>
* owner: Rohit Jha => (none)
* status: assigned => new
--
Ticket URL: <https://code.djangoproject.com/ticket/31122#comment:6>
* owner: nobody => AP Jama
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/31122#comment:3>
* cc: AP Jama (added)
* owner: AP Jama => (none)
* status: assigned => new
--
Ticket URL: <https://code.djangoproject.com/ticket/31122#comment:4>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/31122#comment:7>
* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/31122#comment:8>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"7ace6265d68febc2914aafe39cd671c13da43715" 7ace6265]:
{{{
#!CommitTicketReference repository=""
revision="7ace6265d68febc2914aafe39cd671c13da43715"
[3.1.x] Fixed #31122 -- Clarified that Lookup acts as a query expression.
Backport of 9a3454f6046b9b7591fd03e21cf6da0b23c57689 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31122#comment:10>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"9a3454f6046b9b7591fd03e21cf6da0b23c57689" 9a3454f]:
{{{
#!CommitTicketReference repository=""
revision="9a3454f6046b9b7591fd03e21cf6da0b23c57689"
Fixed #31122 -- Clarified that Lookup acts as a query expression.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31122#comment:9>