Ticket #1504: __init__.py.3.diff
File __init__.py.3.diff, 743 bytes (added by , 17 years ago) |
---|
-
shortcuts/__init__.py
14 14 Returns a HttpResponse whose content is filled with the result of calling 15 15 django.template.loader.render_to_string() with the passed arguments. 16 16 """ 17 return HttpResponse(loader.render_to_string(*args, **kwargs)) 17 if "mimetype" in kwargs: 18 mimetype = kwargs["mimetype"] 19 del kwargs["mimetype"] 20 return HttpResponse(loader.render_to_string(*args, **kwargs), mimetype=mimetype) 21 else: 22 return HttpResponse(loader.render_to_string(*args, **kwargs)) 18 23 load_and_render = render_to_response # For backwards compatibility. 19 24 20 25 def _get_queryset(klass):