[1.6.x] Added more examples to the get_object_or_404 documentation.

Backport of ebfa508fa32b27de6f3e2ca04c81b46408b0506e from master.