Django

Code

Ticket #3767 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

get_object_or_404() -- Raise Http404 with reason

Reported by: David Cramer <dcramer@gmail.com> Assigned to: jacob
Milestone: Component: Uncategorized
Version: SVN Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation:
Needs tests: Patch needs improvement:

Description

Request to add the reason the Http404 was raised when using get_object_or_404()

e.g. raise Http404, "%s matching query does not exist." % self.model._meta.object_name

Attachments

Change History

03/20/07 11:48:41 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

(In [4756]) Fixed #3767 -- Added reason to Http404 exception raised in get_object_or_404 and get_list_or_404


Add/Change #3767 (get_object_or_404() -- Raise Http404 with reason)




Change Properties
Action