Fixed an issue in the auth48 state_alert_badge() template filter, which could arise for a document where a get_state() call returns None.
- Legacy-Id: 18436
This commit is contained in:
parent
a6939a8c2f
commit
1b2900007a
|
@ -225,12 +225,12 @@ def state_alert_badge(doc):
|
|||
if doc.type_id != 'draft':
|
||||
return ''
|
||||
|
||||
iesg_state = doc.get_state('draft-iesg')
|
||||
if iesg_state.slug != 'rfcqueue':
|
||||
iesg_state = doc.get_state_slug('draft-iesg')
|
||||
if iesg_state != 'rfcqueue':
|
||||
return ''
|
||||
|
||||
rfced_state = doc.get_state('draft-rfceditor')
|
||||
if rfced_state.slug == 'auth48':
|
||||
rfced_state = doc.get_state_slug('draft-rfceditor')
|
||||
if rfced_state == 'auth48':
|
||||
return mark_safe('<span class="label label-info" title="AUTH48">AUTH48</span>')
|
||||
|
||||
return ''
|
Loading…
Reference in a new issue