diff options
| author | Tom Christie | 2011-05-24 10:40:35 +0100 |
|---|---|---|
| committer | Tom Christie | 2011-05-24 10:40:35 +0100 |
| commit | eafda8550800a98aa37571df0cef78e32521a89b (patch) | |
| tree | 684f4ae5dfb28091e9f7c976e20bcc645f85a9ed /djangorestframework/tests/breadcrumbs.py | |
| parent | 370274f5640d55ef71422f7a2440710a43ff900e (diff) | |
| download | django-rest-framework-eafda8550800a98aa37571df0cef78e32521a89b.tar.bz2 | |
Fix up breadcrumbs to only breadcrumb for REST framework Views
Diffstat (limited to 'djangorestframework/tests/breadcrumbs.py')
| -rw-r--r-- | djangorestframework/tests/breadcrumbs.py | 10 |
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()), ) |
