Opened 17 years ago

Closed 17 years ago

#3767 closed (fixed)

get_object_or_404() -- Raise Http404 with reason

Reported by: David Cramer <dcramer@…> Owned by: Jacob
Component: Uncategorized Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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

Change History (1)

comment:1 by Adrian Holovaty, 17 years ago

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.
Back to Top