Adding URL name for consistency

This commit is contained in:
James Summerfield 2013-05-13 08:56:27 +02:00
parent fd4a66cfc7
commit e819a9b99b

View File

@ -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:
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