Dec 4, 2011

get_list_or_404


get_list_or_404(klass*args**kwargs)
Returns the result of filter() on a given model manager, raising Http404 if the resulting list is empty.

No comments: