Ticket #18494: propagate_unnamed_groups_to_included_urlconfs.patch

File propagate_unnamed_groups_to_included_urlconfs.patch, 980 bytes (added by stefantalpalaru, 3 years ago)

the fix

  • django/core/urlresolvers.py

    diff --git a/django/core/urlresolvers.py b/django/core/urlresolvers.py
    index 625ec63..1c4ae4d 100644
    a b class RegexURLResolver(LocaleRegexProvider): 
    309309                    if sub_match:
    310310                        sub_match_dict = dict(match.groupdict(), **self.default_kwargs)
    311311                        sub_match_dict.update(sub_match.kwargs)
    312                         return ResolverMatch(sub_match.func, sub_match.args, sub_match_dict, sub_match.url_name, self.app_name or sub_match.app_name, [self.namespace] + sub_match.namespaces)
     312                        return ResolverMatch(sub_match.func, match.groups() + sub_match.args, sub_match_dict, sub_match.url_name, self.app_name or sub_match.app_name, [self.namespace] + sub_match.namespaces)
    313313                    tried.append([pattern])
    314314            raise Resolver404({'tried': tried, 'path': new_path})
    315315        raise Resolver404({'path' : path})
Back to Top