Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf7b453 commit 2deef44Copy full SHA for 2deef44
django_tables/base.py
@@ -2,7 +2,7 @@
2
from django.http import Http404
3
from django.core import paginator
4
from django.utils.datastructures import SortedDict
5
-from django.utils.encoding import StrAndUnicode
+from django.utils.encoding import force_unicode, StrAndUnicode
6
from django.utils.text import capfirst
7
from columns import Column
8
from options import options
@@ -318,7 +318,8 @@ def _get_values(self):
318
values = property(_get_values)
319
320
def __unicode__(self):
321
- return capfirst(self.column.verbose_name or self.name.replace('_', ' '))
+ s = self.column.verbose_name or self.name.replace('_', ' ')
322
+ return capfirst(force_unicode(s))
323
324
def as_html(self):
325
pass
0 commit comments