Ticket #7821: urlresolvers-reverse.diff
File urlresolvers-reverse.diff, 658 bytes (added by , 16 years ago) |
---|
-
django/core/urlresolvers.py
281 281 raise NoReverseMatch 282 282 if lookup_view in self.reverse_dict: 283 283 return u''.join([reverse_helper(part.regex, *args, **kwargs) for part in self.reverse_dict[lookup_view]]) 284 raise NoReverseMatch 284 raise NoReverseMatch('Unable to find reverse match for "%s"' % lookup_view) 285 285 286 286 def reverse_helper(self, lookup_view, *args, **kwargs): 287 287 sub_match = self.reverse(lookup_view, *args, **kwargs)