Ticket #7821: urlresolvers-reverse-r8225.patch
File urlresolvers-reverse-r8225.patch, 664 bytes (added by , 16 years ago) |
---|
-
django/core/urlresolvers.py
288 288 raise NoReverseMatch 289 289 if lookup_view in self.reverse_dict: 290 290 return u''.join([reverse_helper(part.regex, *args, **kwargs) for part in self.reverse_dict[lookup_view]]) 291 raise NoReverseMatch 291 raise NoReverseMatch('Unable to find reverse match for "%s"' % lookup_view) 292 292 293 293 def reverse_helper(self, lookup_view, *args, **kwargs): 294 294 sub_match = self.reverse(lookup_view, *args, **kwargs)