URLconf with prefix and callable views raises an exception
|Reported by:||wip@…||Owned by:||adrian|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Despite what the documentation for the URLconf says, having a prefix and callable views results in an exception.
This line here is the reasoning for it. prefix will resolve to True, so it then checks prefix concatenated with the view instead of skipping straight to passing the view. You can't concantenate a string and a function, so an exception is thrown.
Change History (5)
comment:1 Changed 8 years ago by Simon G. <dev@…>
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Summary changed from URLconf with prefix and callable views. to URLconf with prefix and callable views raises an exception
- Triage Stage changed from Unreviewed to Accepted