mirror of
https://github.com/django/django.git
synced 2025-09-24 19:23:03 +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
|
@ -40,6 +40,7 @@ urlpatterns = patterns('',
|
|||
url(r'^(?i)test/2/?$', empty_view, name="test2"),
|
||||
url(r'^outer/(?P<outer>\d+)/',
|
||||
include('regressiontests.urlpatterns_reverse.included_urls')),
|
||||
url('', include('regressiontests.urlpatterns_reverse.extra_urls')),
|
||||
|
||||
# This is non-reversible, but we shouldn't blow up when parsing it.
|
||||
url(r'^(?:foo|bar)(\w+)/$', empty_view, name="disjunction"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue