Opened 17 years ago
Last modified 17 years ago
#6934 closed
[PATCH] django.core.urlresolvers.reverse fails sometimes. — at Initial Version
Description ¶
If you have a url pattern, containing...
- nested groups
- not-matching groups
- look-ahead or look-behind groups
...django.core.urlresolvers.reverse will fail, because of following reasons:
- To replace the groups re.sub with r'\(([)]+)\)' is used, which matches only until the first ')', doesn't matter how much groups are nested.
- All groups which are no named groups are assumed to be positional groups, regardless if they might be not-matching, look-ahead or look-behind groups.
Change History (1)
by , 17 years ago
Attachment: | support-for-more-flexible-url-regex-patterns.patch added |
---|
Note:
See TracTickets
for help on using tickets.