Ticket #1504: __init__.py.diff
File __init__.py.diff, 662 bytes (added by , 18 years ago) |
---|
-
shortcuts/__init__.py
6 6 from django.http import HttpResponse, Http404 7 7 from django.db.models.manager import Manager 8 8 9 def render_to_response( *args, **kwargs):10 return HttpResponse(loader.render_to_string(*args, **kwargs) )9 def render_to_response(mimetype=None, *args, **kwargs): 10 return HttpResponse(loader.render_to_string(*args, **kwargs), mimetype=mimetype) 11 11 load_and_render = render_to_response # For backwards compatibility. 12 12 13 13 def get_object_or_404(klass, *args, **kwargs):