mirror of
https://github.com/django/django.git
synced 2025-08-02 10:02:41 +00:00
Fixed #13260 -- Quoted arguments interpolated in URLs in reverse.
This commit is contained in:
parent
4485b2a74c
commit
31b5275235
6 changed files with 38 additions and 16 deletions
|
@ -97,7 +97,11 @@ test_data = (
|
|||
('product', '/product/chocolate+($2.00)/', [], {'price': '2.00', 'product': 'chocolate'}),
|
||||
('headlines', '/headlines/2007.5.21/', [], dict(year=2007, month=5, day=21)),
|
||||
('windows', r'/windows_path/C:%5CDocuments%20and%20Settings%5Cspam/', [], dict(drive_name='C', path=r'Documents and Settings\spam')),
|
||||
('special', r'/special_chars/+%5C$*/', [r'+\$*'], {}),
|
||||
('special', r'/special_chars/%2B%5C%24%2A/', [r'+\$*'], {}),
|
||||
('special', r'/special_chars/some%20resource/', [r'some resource'], {}),
|
||||
('special', r'/special_chars/10%25%20complete/', [r'10% complete'], {}),
|
||||
('special', r'/special_chars/some%20resource/', [], {'chars': r'some resource'}),
|
||||
('special', r'/special_chars/10%25%20complete/', [], {'chars': r'10% complete'}),
|
||||
('special', NoReverseMatch, [''], {}),
|
||||
('mixed', '/john/0/', [], {'name': 'john'}),
|
||||
('repeats', '/repeats/a/', [], {}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue