Ticket #10798: urlresolvers_patch.diff
File urlresolvers_patch.diff, 795 bytes (added by , 16 years ago) |
---|
-
django/core/urlresolvers.py
164 164 for piece, p_args in parent: 165 165 new_matches.extend([(piece + suffix, p_args + args) for (suffix, args) in matches]) 166 166 self._reverse_dict.appendlist(name, (new_matches, p_pattern + pat)) 167 el se:167 elif isinstance(pattern, RegexURLPattern): 168 168 bits = normalize(p_pattern) 169 169 self._reverse_dict.appendlist(pattern.callback, (bits, p_pattern)) 170 170 self._reverse_dict.appendlist(pattern.name, (bits, p_pattern))