﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
26978	Improve the message attached to the 404 raised by get_object_or_404 and get_list_or_404	Joachim Jablon		"
== The problem : ==
 
If no object is returned by get_object_or_404 and get_list_or_404, they raise an Http404 error for which the error message contains the {{{model._meta.object_name}}}. This name should not really be shown to the user within the normal workflow. Classes have a {{{ verbose_name }}} that is more appropriate.

Moreover, this message should be translatable.

(not sure if it's really a bug or a feature...)

== Code : ==
 
https://github.com/django/django/blob/64aba7a8aba06b8be52a1a099b44e1d3be4bdd26/django/shortcuts.py#L93"	Uncategorized	new	Error reporting	1.9	Normal		404, object_name		Unreviewed	0	0	0	0	0	0
