#21840: LazyObject wrapped instances can no longer be coerced to Bool due to #20924 ----------------------------------+------------------------------------ Reporter: gabejackson | Owner: nobody Type: Bug | Status: new Component: Utilities | Version: master Severity: Release blocker | Resolution: Keywords: LazyObject utils | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 ----------------------------------+------------------------------------ Changes (by bmispelon):
* has_patch: 0 => 1 Comment: Pull request here: https://github.com/django/django/pull/2221 As far as I can tell, there's no reason for all the dunder methods to exist on `SimpleLazyObject` instead of `LazyObject` and moving them all to the parent class fixes this particular issue. I also added a regression test and the full test suite passes (on sqlite at least). -- Ticket URL: <https://code.djangoproject.com/ticket/21840#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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/069.e96a72c15e78e8276ccd12d81cd130ae%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.