mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +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:
		
				
					committed by
					
						 Tim Graham
						Tim Graham
					
				
			
			
				
	
			
			
			
						parent
						
							c67dce911e
						
					
				
				
					commit
					ecea60fee8
				
			| @@ -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