Ticket #10798: urlresolvers_patch.diff

File urlresolvers_patch.diff, 795 bytes (added by fas, 16 years ago)
  • django/core/urlresolvers.py

     
    164164                            for piece, p_args in parent:
    165165                                new_matches.extend([(piece + suffix, p_args + args) for (suffix, args) in matches])
    166166                            self._reverse_dict.appendlist(name, (new_matches, p_pattern + pat))
    167                 else:
     167                elif isinstance(pattern, RegexURLPattern):
    168168                    bits = normalize(p_pattern)
    169169                    self._reverse_dict.appendlist(pattern.callback, (bits, p_pattern))
    170170                    self._reverse_dict.appendlist(pattern.name, (bits, p_pattern))
Back to Top