--
Ticket URL: <https://code.djangoproject.com/ticket/16979>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* version: 1.3 => SVN
* needs_docs: => 1
* needs_tests: => 1
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/16979#comment:1>
Comment (by anonymous):
cleaned up, now there's a {{{tree.Node._prefix()}}} instance method, and
the {{{Q.__init__()}}} constructor does the {{{(..., relfield=qobj,
...)}}} => {{{(..., qobj._prefix(relfield+'__'), ...)}}} transformation.
No need to modify the {{{db.query}}} code.
--
Ticket URL: <https://code.djangoproject.com/ticket/16979#comment:2>
Comment (by timo):
https://github.com/django/django/pull/580
--
Ticket URL: <https://code.djangoproject.com/ticket/16979#comment:3>
* needs_better_patch: 0 => 1
* needs_tests: 1 => 0
* needs_docs: 1 => 0
Comment:
The patch needs to be updated to apply cleanly to trunk and also needs a
mention in the release notes. Since the PR has been polluted with some
unrelated commits, here's the commit for this feature:
https://github.com/emulbreh/django/commit/34223e1bc864dd4f776b1094f388bf2fdbddfbd5
--
Ticket URL: <https://code.djangoproject.com/ticket/16979#comment:4>
* status: new => closed
* resolution: => wontfix
* stage: Accepted => Unreviewed
Comment:
Thanks for this ticket, however the proposed API
(`.filter(thing=Q(color='blue'))`) is very confusing for me and I don't
see any advantages over the existing API (`.filter(thing__color='blue')`).
Please start a discussion on the DevelopersMailingList, where you'll reach
a wider audience and see what other think, I'd like to reach a consensus
before moving this forward.
--
Ticket URL: <https://code.djangoproject.com/ticket/16979#comment:5>