I know there might be another design or security feature as well but the
gain in my code would be significant.
--
Ticket URL: <https://code.djangoproject.com/ticket/34683>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => wontfix
Comment:
Thanks for this ticket, however we don't want to complicate this
shortcuts. You can always add a small wrapper in your app, e.g.
{{{#!python
def my_get_object_or_404(klass, message, *args, **kwargs):
try:
return get_object_or_404(klass, *args, **kwargs)
except Http404:
if message:
raise Http404(message)
else:
raise
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34683#comment:1>