mirror of
https://github.com/django/django.git
synced 2025-11-02 04:48:33 +00:00
Corrected [13479], accounting for unnamed urls that are instances of classes.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13497 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
75ac6c26da
commit
69d1e71fad
5 changed files with 27 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
from django.conf.urls.defaults import *
|
||||
from views import view_class_instance
|
||||
|
||||
class URLObject(object):
|
||||
def __init__(self, app_name, namespace):
|
||||
|
|
@ -26,6 +27,11 @@ urlpatterns = patterns('regressiontests.urlpatterns_reverse.views',
|
|||
url(r'^mixed_args/(\d+)/(?P<arg2>\d+)/$', 'empty_view', name='mixed-args'),
|
||||
url(r'^no_kwargs/(\d+)/(\d+)/$', 'empty_view', name='no-kwargs'),
|
||||
|
||||
url(r'^view_class/(?P<arg1>\d+)/(?P<arg2>\d+)/$', view_class_instance, name='view-class'),
|
||||
|
||||
(r'^unnamed/normal/(?P<arg1>\d+)/(?P<arg2>\d+)/$', 'empty_view'),
|
||||
(r'^unnamed/view_class/(?P<arg1>\d+)/(?P<arg2>\d+)/$', view_class_instance),
|
||||
|
||||
(r'^test1/', include(testobj1.urls)),
|
||||
(r'^test2/', include(testobj2.urls)),
|
||||
(r'^default/', include(default_testobj.urls)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue