mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	- Fixed bug in get_callable() that caused resolve() to put a string in ResolverMatch.func. - Made ResolverMatch.url_name match the actual url name (or None). - Updated tests that used the string value in ResolverMatch.func, and added regression tests for this bug. - Corrected test urls whose dummy view paths caused failures (behavior that was previously masked by this bug).
		
			
				
	
	
		
			8 lines
		
	
	
		
			220 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			220 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from django.conf.urls import url
 | |
| 
 | |
| urlpatterns = [
 | |
|     url(r'^noslash$', 'middleware.views.empty_view'),
 | |
|     url(r'^slash/$', 'middleware.views.empty_view'),
 | |
|     url(r'^needsquoting#/$', 'middleware.views.empty_view'),
 | |
| ]
 |