mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +00:00 
			
		
		
		
	``get_template_from_string`` default arguments were breaking ``assertTemplateUsed``. The solution has been to return only the names of the templates with a ``name`` attribute distinct of ``None``. The default ``name`` kwarg of ``Template`` has been changed to ``None``, more pythonic than ``'<Unknown Template>'``.
		
			
				
	
	
		
			10 lines
		
	
	
		
			214 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			214 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from django.conf.urls import patterns
 | |
| 
 | |
| from . import views
 | |
| 
 | |
| 
 | |
| urlpatterns = patterns('',
 | |
|     (r'^test_utils/get_person/(\d+)/$', views.get_person),
 | |
|     (r'^test_utils/no_template_used/$', views.no_template_used),
 | |
| )
 |