#11960 closed (fixed)
Misleading/Wrong Error: argument of type 'function' is not iterable
Reported by: | pguth | Owned by: | nobody |
---|---|---|---|
Component: | Core (Other) | Version: | 1.1 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
If the urls.py is lacking a (proper) pattern for "some_view" the following code will throw "argument of type 'function' is not iterable" when called.
return redirect(some_view)
Attachments (1)
Change History (6)
by , 15 years ago
Attachment: | 11960-1.diff added |
---|
comment:1 by , 15 years ago
Has patch: | set |
---|
comment:2 by , 15 years ago
Triage Stage: | Unreviewed → Ready for checkin |
---|
comment:3 by , 15 years ago
milestone: | → 1.2 |
---|
comment:4 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Adding a patch to check if redirect's argument is a callable object, so that it isn't tested as a string.