Fixed #28627 -- Added slug converter to some path() examples in docs.

This commit is contained in:
Christopher Schäpers 2017-09-25 19:06:11 +02:00 committed by Tim Graham
parent c0d968ea1f
commit 6da140724d
3 changed files with 7 additions and 7 deletions

View file

@ -59,7 +59,7 @@ many projects they are typically the most commonly used views.
from article.views import ArticleDetailView
urlpatterns = [
path('<slug>/', ArticleDetailView.as_view(), name='article-detail'),
path('<slug:slug>/', ArticleDetailView.as_view(), name='article-detail'),
]
**Example myapp/article_detail.html**: