mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
[2.0.x] Fixed #28627 -- Added slug converter to some path() examples in docs.
Backport of 6da140724d
from master
This commit is contained in:
parent
c67dce911e
commit
ecea60fee8
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