mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	[1.8.x] Fixed #25473 -- Changed underscores in url() names to dashes in docs.
To improve consistency, sample URL names that had underscores
in them now use dashes instead. That excludes URL names that
have some relation to the code, such as those generated by
the admin.
Thanks guettli for reporting this.
Backport of 1679472165 from master
			
			
This commit is contained in:
		
				
					committed by
					
						 Tim Graham
						Tim Graham
					
				
			
			
				
	
			
			
			
						parent
						
							bd55e80635
						
					
				
				
					commit
					78a28cca20
				
			| @@ -163,9 +163,9 @@ Finally, we hook these new views into the URLconf: | ||||
|  | ||||
|     urlpatterns = [ | ||||
|         # ... | ||||
|         url(r'author/add/$', AuthorCreate.as_view(), name='author_add'), | ||||
|         url(r'author/(?P<pk>[0-9]+)/$', AuthorUpdate.as_view(), name='author_update'), | ||||
|         url(r'author/(?P<pk>[0-9]+)/delete/$', AuthorDelete.as_view(), name='author_delete'), | ||||
|         url(r'author/add/$', AuthorCreate.as_view(), name='author-add'), | ||||
|         url(r'author/(?P<pk>[0-9]+)/$', AuthorUpdate.as_view(), name='author-update'), | ||||
|         url(r'author/(?P<pk>[0-9]+)/delete/$', AuthorDelete.as_view(), name='author-delete'), | ||||
|     ] | ||||
|  | ||||
| .. note:: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user