]> git.openstreetmap.org Git - osqa.git/commitdiff
the urls in the bulk management view in the administration should pass through smart_...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 10 Jun 2011 15:29:56 +0000 (15:29 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 10 Jun 2011 15:29:56 +0000 (15:29 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1062 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/utils/pagination.py

index 46c1e89c8b7d4a79fe91f3881c767148af23cbeb..d605d5f0788b4a43f67537a0414c45d8d8e8f3c5 100644 (file)
@@ -5,6 +5,7 @@ from django.core.paginator import Paginator, EmptyPage
 from django.utils.translation import ugettext as _
 from django.utils.html import escape
 from django.http import Http404
+from django.utils.encoding import smart_unicode
 from django.utils.http import urlquote
 from django.utils.safestring import mark_safe
 from django.utils.html import strip_tags, escape
@@ -298,7 +299,7 @@ def _paginated(request, objects, context):
             sorts = [(n, s.label, url_builder(n), strip_tags(s.description)) for n, s in context.sort_methods.items()]
 
             for name, label, url, descr in sorts:
-                paginator.__dict__['%s_sort_link' % name] = url
+                paginator.__dict__['%s_sort_link' % name] = smart_unicode(url)
 
             return sort_tabs_template.render(template.Context({
                 'current': sort,