Skip to content

Commit

Permalink
Check for empty string on row_attrs['class'] (jieter#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
Superman8218 authored and jieter committed Feb 27, 2017
1 parent d019b5e commit f8d7c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_tables2/rows.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def attrs(self):

row_attrs = computed_values(self._table.row_attrs, self._record)

if 'class' in row_attrs:
if 'class' in row_attrs and row_attrs['class']:
row_attrs['class'] += ' ' + cssClass
else:
row_attrs['class'] = cssClass
Expand Down

0 comments on commit f8d7c7a

Please sign in to comment.