Code

Opened 7 years ago

Closed 7 years ago

#3767 closed (fixed)

get_object_or_404() -- Raise Http404 with reason

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

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 (0)

Change History (1)

comment:1 Changed 7 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.