Ticket #17566: 17566-1.diff

File 17566-1.diff, 663 bytes (added by Claude Paroz, 12 years ago)

Apply force_unicode to self.urlconf_name

  • django/core/urlresolvers.py

    diff --git a/django/core/urlresolvers.py b/django/core/urlresolvers.py
    index 1497d43..1b3e062 100644
    a b class RegexURLResolver(LocaleRegexProvider):  
    232232        self._app_dict = {}
    233233
    234234    def __repr__(self):
    235         return smart_str(u'<%s %s (%s:%s) %s>' % (self.__class__.__name__, self.urlconf_name, self.app_name, self.namespace, self.regex.pattern))
     235        return smart_str(u'<%s %s (%s:%s) %s>' % (self.__class__.__name__, force_unicode(self.urlconf_name), self.app_name, self.namespace, self.regex.pattern))
    236236
    237237    def _populate(self):
    238238        lookups = MultiValueDict()
Back to Top