from django.http import Http404\r
from django.core import paginator\r
from django.utils.datastructures import SortedDict\r
-from django.utils.encoding import StrAndUnicode\r
+from django.utils.encoding import force_unicode, StrAndUnicode\r
from django.utils.text import capfirst\r
from columns import Column\r
from options import options\r
values = property(_get_values)\r
\r
def __unicode__(self):\r
- return capfirst(self.column.verbose_name or self.name.replace('_', ' '))\r
+ s = self.column.verbose_name or self.name.replace('_', ' ')\r
+ return capfirst(force_unicode(s))\r
\r
def as_html(self):\r
pass\r