diff --git a/lib/tables.py b/lib/tables.py index c38ca7b17..2e19a11b3 100644 --- a/lib/tables.py +++ b/lib/tables.py @@ -25,13 +25,16 @@ class Column: for k, v in kwargs.iteritems(): setattr(self, k, v) - def __str__(self): + def __unicode__(self): try: label = getattr(self, "label") except KeyError: label = getattr(self, "name") return _(label) + def __str__(self): + return self.__unicode__() + class SelectionColumn(Column): """Specific column: selection