mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Fixed breakage introduced in the recent render_to_response() change
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6227 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -14,7 +14,7 @@ def render_to_response(*args, **kwargs): | ||||
|     Returns a HttpResponse whose content is filled with the result of calling | ||||
|     django.template.loader.render_to_string() with the passed arguments. | ||||
|     """ | ||||
|     httpresponse_kwargs = {'mimetype': kwargs.pop('mimetype')} | ||||
|     httpresponse_kwargs = {'mimetype': kwargs.pop('mimetype', None)} | ||||
|     return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs) | ||||
| load_and_render = render_to_response # For backwards compatibility. | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user