@register.filter(is_safe=False)
@stringfilter
def upper(value):
 return value.upper()

@ register . filter ( is_safe = False ) @ stringfilter def upper ( value ) : return value . upper ( )
converts a string into all uppercase .