Ticket #2048: positional-args-in-get-object-or-404.diff
File positional-args-in-get-object-or-404.diff, 626 bytes (added by , 18 years ago) |
---|
-
django/shortcuts/__init__.py
10 10 return HttpResponse(loader.render_to_string(*args, **kwargs)) 11 11 load_and_render = render_to_response # For backwards compatibility. 12 12 13 def get_object_or_404(klass, * *kwargs):13 def get_object_or_404(klass, *args, **kwargs): 14 14 try: 15 return klass._default_manager.get(* *kwargs)15 return klass._default_manager.get(*args, **kwargs) 16 16 except klass.DoesNotExist: 17 17 raise Http404 18 18