

def __init__(self, *args, **kwargs):
    super(FormsetCell, self).__init__(*args, **kwargs)
    try:
        self.field = (self.row.form or {
            
        })[self.column.name]
    except KeyError:
        self.field = None
    else:
        if self.field.errors:
            self.attrs['class'] = (self.attrs.get('class', '') + ' error form-group')
            self.attrs['title'] = ' '.join((unicode(error) for error in self.field.errors))

dataset/ETHPy150Open CiscoSystems/avos/horizon/tables/formset.py FormsetCell.__init__/original