aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/tests/breadcrumbs.py
diff options
context:
space:
mode:
Diffstat (limited to 'djangorestframework/tests/breadcrumbs.py')
-rw-r--r--djangorestframework/tests/breadcrumbs.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/djangorestframework/tests/breadcrumbs.py b/djangorestframework/tests/breadcrumbs.py
index 158f1800..dc1a02bf 100644
--- a/djangorestframework/tests/breadcrumbs.py
+++ b/djangorestframework/tests/breadcrumbs.py
@@ -19,11 +19,11 @@ class NestedResourceInstance(View):
pass
urlpatterns = patterns('',
- url(r'^$', Root),
- url(r'^resource/$', ResourceRoot),
- url(r'^resource/(?P<key>[0-9]+)$', ResourceInstance),
- url(r'^resource/(?P<key>[0-9]+)/$', NestedResourceRoot),
- url(r'^resource/(?P<key>[0-9]+)/(?P<other>[A-Za-z]+)$', NestedResourceInstance),
+ url(r'^$', Root.as_view()),
+ url(r'^resource/$', ResourceRoot.as_view()),
+ url(r'^resource/(?P<key>[0-9]+)$', ResourceInstance.as_view()),
+ url(r'^resource/(?P<key>[0-9]+)/$', NestedResourceRoot.as_view()),
+ url(r'^resource/(?P<key>[0-9]+)/(?P<other>[A-Za-z]+)$', NestedResourceInstance.as_view()),
)