mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #28627 -- Added slug converter to some path() examples in docs.
This commit is contained in:
committed by
Tim Graham
parent
c0d968ea1f
commit
6da140724d
@@ -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**:
|
||||
|
||||
Reference in New Issue
Block a user