the below code is table.py
class StColumn(tables.Column): def render(self, value, record): if record.status == \'warning\': self.attrs ={&q