1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +00:00

magic-removal: fixed #1554 (thanks, Christopher Lenz)

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2594 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2006-03-29 16:05:56 +00:00
parent fec6bb5d5c
commit 07131c390d

View File

@ -17,7 +17,7 @@ def get_object_or_404(klass, **kwargs):
raise Http404
def get_list_or_404(klass, **kwargs):
obj_list = klass._default_manager.get_list(**kwargs)
obj_list = list(klass._default_manager.filter(**kwargs))
if not obj_list:
raise Http404
return obj_list