Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit eb74800b31b145f2580006f25282c78f54cf490f 1 parent 4a57ef8
Jacob Kaplan-Moss jacobian authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/shortcuts/
4 django/shortcuts/
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.