mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-30 01:49:50 +03:00
Merge 5f243ae657
into 1154d873e9
This commit is contained in:
commit
5a430ae738
|
@ -69,8 +69,8 @@ We'll also need to refactor our URLconf slightly now we're using class based vie
|
|||
from snippets import views
|
||||
|
||||
urlpatterns = patterns('',
|
||||
url(r'^snippets/$', views.SnippetList.as_view()),
|
||||
url(r'^snippets/(?P<pk>[0-9]+)/$', views.SnippetDetail.as_view()),
|
||||
url(r'^snippets/$', views.SnippetList.as_view(), name='snippet-list'),
|
||||
url(r'^snippets/(?P<pk>[0-9]+)/$', views.SnippetDetail.as_view(), name='snippet-detail'),
|
||||
)
|
||||
|
||||
urlpatterns = format_suffix_patterns(urlpatterns)
|
||||
|
|
Loading…
Reference in New Issue
Block a user