From eb74800b31b145f2580006f25282c78f54cf490f Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Wed, 31 May 2006 12:36:01 +0000 Subject: [PATCH] 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 --- django/shortcuts/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/shortcuts/__init__.py b/django/shortcuts/__init__.py index 37de0f9482..76d54917ad 100644 --- a/django/shortcuts/__init__.py +++ b/django/shortcuts/__init__.py @@ -16,8 +16,8 @@ def get_object_or_404(klass, *args, **kwargs): except klass.DoesNotExist: raise Http404 -def get_list_or_404(klass, **kwargs): - obj_list = list(klass._default_manager.filter(**kwargs)) +def get_list_or_404(klass, *args, **kwargs): + obj_list = list(klass._default_manager.filter(*args, **kwargs)) if not obj_list: raise Http404 return obj_list