#23260 closed Bug (fixed)
unordered_list filter doesn't work with generators
| Reported by: | Jaap Roes | Owned by: | Jaap Roes |
|---|---|---|---|
| Component: | Template system | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
Using the unorderd_list template filter on a generator raises
TypeError: object of type 'generator' has no len()
Created a pull request:
https://github.com/django/django/pull/3034
Change History (8)
comment:1 by , 11 years ago
| Description: | modified (diff) |
|---|---|
| Has patch: | set |
| Owner: | changed from to |
| Status: | new → assigned |
comment:2 by , 11 years ago
| Description: | modified (diff) |
|---|
comment:3 by , 11 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:4 by , 11 years ago
| Patch needs improvement: | set |
|---|
comment:5 by , 11 years ago
| Patch needs improvement: | unset |
|---|
Forgot to test in Python 3, pushed a new patch that fixes the tests.
comment:6 by , 11 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
There are some test failures on Python 3.