--
Ticket URL: <https://code.djangoproject.com/ticket/29288>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Jirka Vejrazka):
Fix in https://github.com/django/django/pull/9853
--
Ticket URL: <https://code.djangoproject.com/ticket/29288#comment:1>
Old description:
> When an exception happens inside widthratio template tag, the result is
> returned as a string instead of being assigned to a variable even if "as
> variable is used in the template tag.
New description:
When an exception happens inside the `widthratio` template tag, the result
is returned as a string instead of being assigned to a variable even if
`as variable` is used in the template tag.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/29288#comment:2>
* needs_better_patch: 0 => 1
* stage: Unreviewed => Accepted
Comment:
Issue seems reasonable. Test cases fail without patch. I just had a couple
of comments on the PR.
--
Ticket URL: <https://code.djangoproject.com/ticket/29288#comment:3>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"6148dda72f47e40754fc2eb75d86274fb68f2d41" 6148dda7]:
{{{
#!CommitTicketReference repository=""
revision="6148dda72f47e40754fc2eb75d86274fb68f2d41"
Fixed #29288 -- Made {% widthratio %} assign to as var if an exception
occurs.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29288#comment:4>