| |
|
Which shortcut function returns the result of filter() on a given model manager cast to a list, raising Http404 if the resulting list is empty? Question Posted on 24 Dec 2020 Home >> Frameworks >> Django Web Framework >> Which shortcut function returns the result of filter() on a given model manager cast to a list, raising Http404 if the resulting list is empty? |
Which shortcut function returns the result of filter() on a given model manager cast to a list, raising Http404 if the resulting list is empty?
Choose the correct option from below list
(1)render_to_response()
(2)get_list_or_404()
(3)render()
(4)get_object_or_404()
Answer:-(2)get_list_or_404() | |
|
|
|
|