Ticket #12418: list_detail.patch

File list_detail.patch, 690 bytes (added by mk, 6 years ago)
  • django/views/generic/list_detail.py

    diff --git a/django/views/generic/list_detail.py b/django/views/generic/list_detail.py
    index 27e36bd..e2af00b 100644
    a b def object_detail(request, queryset, object_id=None, slug=None, 
    124124    try:
    125125        obj = queryset.get()
    126126    except ObjectDoesNotExist:
    127         raise Http404, "No %s found matching the query" % (model._meta.verbose_name)
     127        raise Http404, u"No %s found matching the query" % (model._meta.verbose_name)
    128128    if not template_name:
    129129        template_name = "%s/%s_detail.html" % (model._meta.app_label, model._meta.object_name.lower())
    130130    if template_name_field:
Back to Top