FIX: fixed html code for status labels without bootstrap_context.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user