1
0
mirror of https://github.com/django/django.git synced 2025-10-24 22:26:08 +00:00

Fixed #131 -- URLconfs that are 'included' now receive captured parameters from parent URLconfs. Thanks for the idea, jcernelli@gmail.com

git-svn-id: http://code.djangoproject.com/svn/django/trunk@704 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty
2005-09-27 04:24:19 +00:00
parent 7f4067100c
commit c084005d58
2 changed files with 28 additions and 12 deletions

View File

@@ -66,7 +66,7 @@ class RegexURLResolver(object):
tried.extend([(pattern.regex.pattern + ' ' + t) for t in e.args[0]['tried']])
else:
if sub_match:
return sub_match
return sub_match[0], dict(match.groupdict(), **sub_match[1])
tried.append(pattern.regex.pattern)
raise Resolver404, {'tried': tried, 'path': new_path}