mirror of
https://github.com/django/django.git
synced 2025-08-22 03:24:21 +00:00
Fixed #8725 -- Handle empty URL patterns in reverse().
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8763 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
30c7ce90c5
commit
e1ea7014ad
4 changed files with 20 additions and 1 deletions
|
@ -61,6 +61,9 @@ test_data = (
|
|||
('inner-extra', NoReverseMatch, ['fred', 'inner'], {}),
|
||||
('disjunction', NoReverseMatch, ['foo'], {}),
|
||||
('inner-disjunction', NoReverseMatch, ['10', '11'], {}),
|
||||
('extra-places', '/e-places/10/', ['10'], {}),
|
||||
('extra-people', '/e-people/fred/', ['fred'], {}),
|
||||
('extra-people', '/e-people/fred/', [], {'name': 'fred'}),
|
||||
)
|
||||
|
||||
class URLPatternReverse(TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue