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
|
| 7 | 7 | from django.utils import six |
| 8 | 8 | from django.utils.translation import ugettext as _ |
| 9 | 9 | from django.views.generic.base import ContextMixin, TemplateResponseMixin, View |
| | 10 | from django.utils.encoding import force_text |
| 10 | 11 | |
| 11 | 12 | |
| 12 | 13 | class MultipleObjectMixin(ContextMixin): |
| … |
… |
class MultipleObjectMixin(ContextMixin):
|
| 80 | 81 | except InvalidPage as e: |
| 81 | 82 | raise Http404(_('Invalid page (%(page_number)s): %(message)s') % { |
| 82 | 83 | 'page_number': page_number, |
| 83 | | 'message': str(e) |
| | 84 | 'message': force_text(e) |
| 84 | 85 | }) |
| 85 | 86 | |
| 86 | 87 | def get_paginate_by(self, queryset): |