FIX: fixed html code for status labels without bootstrap_context.

This commit is contained in:
2019-01-31 15:45:27 +01:00
parent f0e225c5fd
commit 8ec7e000ae

View File

@@ -20,7 +20,7 @@ def render_event_status(event, show_void=True):
for status in status_list:
if isinstance(status, EventStatus):
label = status.label
context = status.bootstrap_context
context = status.bootstrap_context or 'default'
else:
label = status.get('label')
context = status.get('bootstrap_context', 'default')