Ticket #11589: patch.diff
File patch.diff, 484 bytes (added by , 15 years ago) |
---|
-
shortcuts.txt
147 147 ``get_object_or_404`` 148 148 ===================== 149 149 150 .. function:: get_object_or_404( object, *args, **kwargs)150 .. function:: get_object_or_404(klass, *args, **kwargs) 151 151 152 152 Calls :meth:`~django.db.models.QuerySet.get()` on a given model manager, 153 153 but it raises ``django.http.Http404`` instead of the model's