Ticket #10709: getobjector404.call.clarification.diff

File getobjector404.call.clarification.diff, 714 bytes (added by Jarek Zgoda, 16 years ago)

extended description of acceptable types

  • docs/topics/http/shortcuts.txt

     
    149149
    150150.. function:: get_object_or_404(object, *args, **kwargs)
    151151
    152    Calls :meth:`~django.db.models.QuerySet.get()` on a given model manager,
    153    but it raises ``django.http.Http404`` instead of the model's
    154    ``DoesNotExist`` exception.
     152   Calls :meth:`~django.db.models.QuerySet.get()` on a given queryset, manager
     153   or model using default manager, but it raises ``django.http.Http404``
     154   instead of the model's ``DoesNotExist`` exception.
    155155
    156156Required arguments
    157157------------------
Back to Top