mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed #28627 -- Added slug converter to some path() examples in docs.
This commit is contained in:
parent
c0d968ea1f
commit
6da140724d
3 changed files with 7 additions and 7 deletions
|
@ -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**:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue