check section playlist

This commit is contained in:
bkfox
2016-06-08 00:48:10 +02:00
parent 83e425349b
commit 13bf57b401
6 changed files with 7 additions and 6 deletions

View File

@ -32,7 +32,7 @@ class PostBaseView:
Add the given class to the current class list if not yet present.
"""
if self.css_class:
if css_class not in self.css_class:
if css_class not in self.css_class.split(' '):
self.css_class += ' ' + css_class
else:
self.css_class = css_class