@register.filter(is_safe=False)
def default(value, arg):
 return (value or arg)

@ register . filter ( is_safe = False ) def default ( value , arg ) : return ( value or arg )
returns or sets the currently defined default python .