Ticket #35244: resolver_view_function.patch
File resolver_view_function.patch, 1.7 KB (added by , 9 months ago) |
---|
-
django/urls/resolvers.py
a b 587 587 url_pattern.pattern.converters, 588 588 ), 589 589 ) 590 for name in url_pattern.reverse_dict: 591 if not isinstance(name, str): 592 for ( 593 matches, 594 pat, 595 defaults, 596 converters, 597 ) in url_pattern.reverse_dict.getlist(name): 598 new_matches = normalize(p_pattern + pat) 599 lookups.appendlist( 600 name, 601 ( 602 new_matches, 603 p_pattern + pat, 604 {**defaults, **url_pattern.default_kwargs}, 605 { 606 **self.pattern.converters, 607 **url_pattern.pattern.converters, 608 **converters, 609 }, 610 ), 611 ) 590 612 else: # url_pattern is a URLResolver. 591 613 url_pattern._populate() 592 614 if url_pattern.app_name: