@register.simple_tag
def check_severity(check):
 try:
  return escape(CHECKS[check].severity)
 except KeyError:
  return u'info'

@ register . simple_tag def check_severity ( check ) : try : return escape ( CHECKS [ check ] . severity ) except KeyError : return u'info'
returns check severity .