Opened 19 years ago
Closed 19 years ago
#3767 closed (fixed)
get_object_or_404() -- Raise Http404 with reason
| Reported by: | 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
Note:
See TracTickets
for help on using tickets.
(In [4756]) Fixed #3767 -- Added reason to Http404 exception raised in get_object_or_404 and get_list_or_404