@register.simple_tag
def check_description(check):
 try:
  return escape(CHECKS[check].description)
 except KeyError:
  return escape(check)

@ register . simple_tag def check_description ( check ) : try : return escape ( CHECKS [ check ] . description ) except KeyError : return escape ( check )
returns check description .