Changeset 5636
- Timestamp:
- 07/08/07 06:22:53 (1 year ago)
- Files:
-
- django/trunk/django/core/urlresolvers.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/urlresolvers.py
r5632 r5636 10 10 from django.http import Http404 11 11 from django.core.exceptions import ImproperlyConfigured, ViewDoesNotExist 12 from django.utils.encoding import iri_to_uri, force_unicode 12 from django.utils.encoding import iri_to_uri, force_unicode, smart_str 13 13 from django.utils.functional import memoize 14 14 import re … … 230 230 else: 231 231 if sub_match: 232 sub_match_dict = dict(self.default_kwargs, **sub_match[2]) 233 return sub_match[0], sub_match[1], dict(match.groupdict(), **sub_match_dict) 232 sub_match_dict = dict([(smart_str(k), v) for k, v in match.groupdict().items()]) 233 sub_match_dict.update(self.default_kwargs) 234 sub_match_dict.update([(smart_str(k), v) for k, v in sub_match[2].items()]) 235 return sub_match[0], sub_match[1], sub_match_dict 234 236 tried.append(pattern.regex.pattern) 235 237 raise Resolver404, {'tried': tried, 'path': new_path}
