Opened 9 years ago

Closed 9 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:


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 Changed 9 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

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