djangosnippets.org: Latest snippets tagged with 'get_queryset_or_404'https://djangosnippets.org/tags/get_queryset_or_404/2008-05-03T00:24:12.430104-05:00get_queryset_or_404
2008-05-03T00:24:12.430104-05:00mattpdxhttps://djangosnippets.org/snippets/736/<p>Sometimes we want to get a queryset or 404, for example, if we're passing our queryset to a subclassed generic view. This is identical to get_list_or_404 but returns a queryset.</p>
Freely redistributable