mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-30 18:09:59 +03:00
Adding URL name for consistency
This commit is contained in:
parent
fd4a66cfc7
commit
e819a9b99b
|
@ -49,7 +49,7 @@ We'll add a url pattern for our new API root:
|
||||||
|
|
||||||
And then add a url pattern for the snippet highlights:
|
And then add a url pattern for the snippet highlights:
|
||||||
|
|
||||||
url(r'^snippets/(?P<pk>[0-9]+)/highlight/$', views.SnippetHighlight.as_view()),
|
url(r'^snippets/(?P<pk>[0-9]+)/highlight/$', views.SnippetHighlight.as_view(), name='snippet-highlight'),
|
||||||
|
|
||||||
## Hyperlinking our API
|
## Hyperlinking our API
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user