Opened 8 years ago
Last modified 8 years ago
#29288 closed Bug
{% widthratio %} fails to assign to variable if exception happens — at Version 2
| Reported by: | Jirka Vejrazka | Owned by: | nobody |
|---|---|---|---|
| Component: | Template system | Version: | dev |
| Severity: | Normal | Keywords: | templatetag, widthratio |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | yes |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
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.
Change History (2)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
| Description: | modified (diff) |
|---|---|
| Summary: | {% widthratio %} fails to assign to variable on exceptions → {% widthratio %} fails to assign to variable if exception happens |
Note:
See TracTickets
for help on using tickets.
Fix in https://github.com/django/django/pull/9853