Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #2048 - get_object_or_404 now allows *args as well. Thanks, Joeboy

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3014 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 4a57ef858870faaadfcbc30cd8af4520fe7c9d51 1 parent 6b1e7bd
Jacob Kaplan-Moss authored May 31, 2006

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/shortcuts/__init__.py
4  django/shortcuts/__init__.py
@@ -10,9 +10,9 @@ def render_to_response(*args, **kwargs):
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
 

0 notes on commit 4a57ef8

Please sign in to comment.
Something went wrong with that request. Please try again.