Ticket #10709: getobjector404.call.clarification.diff
File getobjector404.call.clarification.diff, 714 bytes (added by , 16 years ago) |
---|
-
docs/topics/http/shortcuts.txt
149 149 150 150 .. function:: get_object_or_404(object, *args, **kwargs) 151 151 152 Calls :meth:`~django.db.models.QuerySet.get()` on a given model manager,153 but it raises ``django.http.Http404`` instead of the model's154 ``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. 155 155 156 156 Required arguments 157 157 ------------------