Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added *args to get_list_or_404, too (refs #2048).

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3015 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit eb74800b31b145f2580006f25282c78f54cf490f 1 parent 4a57ef8
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
@@ -16,8 +16,8 @@ def get_object_or_404(klass, *args, **kwargs):
16 16
     except klass.DoesNotExist:
17 17
         raise Http404
18 18
 
19  
-def get_list_or_404(klass, **kwargs):
20  
-    obj_list = list(klass._default_manager.filter(**kwargs))
  19
+def get_list_or_404(klass, *args, **kwargs):
  20
+    obj_list = list(klass._default_manager.filter(*args, **kwargs))
21 21
     if not obj_list:
22 22
         raise Http404
23 23
     return obj_list

0 notes on commit eb74800

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