#20241: QuerySets with callable filter args have said args evaluated only once
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
christopher.m.pike@… | Status: new
Type: Bug | Version: 1.5
Component: Database layer | Resolution:
(models, ORM) | Triage Stage: Accepted
Severity: Normal | Needs documentation: 0
Keywords: | Patch needs improvement: 0
Has patch: 0 | UI/UX: 0
Needs tests: 0 |
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Comment (by bmispelon):
Turns out this issue was reported a while ago: #10466
I closed the other one since I think there's more information in the
discussion of this ticket.
I don't know anything about the internals of querysets but if this issue
is that tricky to fix, I'd be in favor of dropping it entirely.
For one, it's never been documented and secondly, it's not very useful
since the callable is evaluated immediately (all it does is save the user
from typing a pair of parentheses).
--
Ticket URL: <https://code.djangoproject.com/ticket/20241#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.