diff --git a/apps/participation/tables.py b/apps/participation/tables.py index cfd121f..b8f3a93 100644 --- a/apps/participation/tables.py +++ b/apps/participation/tables.py @@ -42,6 +42,9 @@ class TeamTable(tables.Table): attrs = { 'class': 'table table condensed table-striped', } + row_attrs = { + 'class': lambda record: '' if record.participation.solution.link else 'bg-warning', + } model = Team fields = ('name', 'trigram', 'problem',) template_name = 'django_tables2/bootstrap4.html'