#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): Replying to [comment:2 michael.c.urbanski@…]: > I was under the impression that callables in QuerySets, like callables in fields, were called as they were used. I would have thought so too, but it appears it's not the case. I've opened #20249 to fix the tutorial while this ticket remains open (fixing this ticket is likely more complicated than amending the documentation). -- Ticket URL: <https://code.djangoproject.com/ticket/20241#comment:3> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.