url backreferencing can not be reversed.
|Reported by:||Nate Bragg||Owned by:||Nate Bragg|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
If a url pattern uses backreferencing (i.e., "(?P=previously_named_group)"), the reversal fails, throwing up "Non-reversible reg-exp portion" ValueError. The problem occurs in django.utils.regex_helper.normalize which gives up on any character following a "(?P" other than "<".
Change History (9)
comment:5 Changed 5 years ago by
|Patch needs improvement:||unset|