Ticket #7821: urlresolvers-reverse-r8225.patch

File urlresolvers-reverse-r8225.patch, 664 bytes (added by Adam Vandenberg, 16 years ago)

Updated patch to r8225

  • django/core/urlresolvers.py

     
    288288            raise NoReverseMatch
    289289        if lookup_view in self.reverse_dict:
    290290            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)
    292292
    293293    def reverse_helper(self, lookup_view, *args, **kwargs):
    294294        sub_match = self.reverse(lookup_view, *args, **kwargs)
Back to Top