Ticket #13193: reverse_ignore_kwargs.diff

File reverse_ignore_kwargs.diff, 640 bytes (added by anonymous, 15 years ago)
  • django/core/urlresolvers.py

    index 3bb2c1c..afc2a8c 100644
    a b class RegexURLResolver(object):  
    283283                    unicode_args = [force_unicode(val) for val in args]
    284284                    candidate =  result % dict(zip(params, unicode_args))
    285285                else:
    286                     if set(kwargs.keys()) != set(params):
    287                         continue
    288286                    unicode_kwargs = dict([(k, force_unicode(v)) for (k, v) in kwargs.items()])
    289287                    candidate = result % unicode_kwargs
    290288                if re.search(u'^%s' % pattern, candidate, re.UNICODE):
Back to Top