Django Book 翻译
菜单>:
TOC
返回
原文:
``get_list_or_404`` behaves the same way as ``get_object_or_404()`` , except that it uses ``filter()`` instead of ``get()`` . It raises ``Http404`` if the list is empty.
翻译:
``get_list_or_404`` 行为与 ``get_object_or_404()`` 相同,但是它用 ``filter()`` 取代了 ``get()`` 。如果列表为空,它将引发 ``Http404`` 。
备注:
译者: