diff --git a/django/core/urlresolvers.py b/django/core/urlresolvers.py index 52d90904a2..34bca8ae80 100644 --- a/django/core/urlresolvers.py +++ b/django/core/urlresolvers.py @@ -131,7 +131,7 @@ class RegexURLPattern(object): self.name = name def __repr__(self): - return '<%s %s %s>' % (self.__class__.__name__, self.name, self.regex.pattern) + return smart_str(u'<%s %s %s>' % (self.__class__.__name__, self.name, self.regex.pattern)) def add_prefix(self, prefix): """ @@ -188,7 +188,7 @@ class RegexURLResolver(object): self._app_dict = None def __repr__(self): - return '<%s %s (%s:%s) %s>' % (self.__class__.__name__, self.urlconf_name, self.app_name, self.namespace, self.regex.pattern) + return smart_str(u'<%s %s (%s:%s) %s>' % (self.__class__.__name__, self.urlconf_name, self.app_name, self.namespace, self.regex.pattern)) def _populate(self): lookups = MultiValueDict()