Ticket #11589: patch.diff

File patch.diff, 484 bytes (added by tsaylor, 6 years ago)

Documentation change

  • shortcuts.txt

     
    147147``get_object_or_404``
    148148=====================
    149149
    150 .. function:: get_object_or_404(object, *args, **kwargs)
     150.. function:: get_object_or_404(klass, *args, **kwargs)
    151151
    152152   Calls :meth:`~django.db.models.QuerySet.get()` on a given model manager,
    153153   but it raises ``django.http.Http404`` instead of the model's
Back to Top