Ticket #13193: reverse_ignore_kwargs.diff
File reverse_ignore_kwargs.diff, 640 bytes (added by , 15 years ago) |
---|
-
django/core/urlresolvers.py
index 3bb2c1c..afc2a8c 100644
a b class RegexURLResolver(object): 283 283 unicode_args = [force_unicode(val) for val in args] 284 284 candidate = result % dict(zip(params, unicode_args)) 285 285 else: 286 if set(kwargs.keys()) != set(params):287 continue288 286 unicode_kwargs = dict([(k, force_unicode(v)) for (k, v) in kwargs.items()]) 289 287 candidate = result % unicode_kwargs 290 288 if re.search(u'^%s' % pattern, candidate, re.UNICODE):