Ticket #28204: fix.patch

File fix.patch, 837 bytes (added by Andrew, 8 years ago)
  • django/views/generic/list.py

    diff --git a/django/views/generic/list.py b/django/views/generic/list.py
    index 2277ffd4d3..ea549611c7 100644
    a b from django.http import Http404  
    77from django.utils import six
    88from django.utils.translation import ugettext as _
    99from django.views.generic.base import ContextMixin, TemplateResponseMixin, View
     10from django.utils.encoding import force_text
    1011
    1112
    1213class MultipleObjectMixin(ContextMixin):
    class MultipleObjectMixin(ContextMixin):  
    8081        except InvalidPage as e:
    8182            raise Http404(_('Invalid page (%(page_number)s): %(message)s') % {
    8283                'page_number': page_number,
    83                 'message': str(e)
     84                'message': force_text(e)
    8485            })
    8586
    8687    def get_paginate_by(self, queryset):
Back to Top