@register.filter(u'timeuntil', is_safe=False)
def timeuntil_filter(value, arg=None):
 if (not value):
  return u''
 try:
  return timeuntil(value, arg)
 except (ValueError, TypeError):
  return u''

@ register . filter ( u'timeuntil' , is_safe = False ) def timeuntil_filter ( value , arg = None ) : if ( not value ) : return u'' try : return timeuntil ( value , arg ) except ( ValueError , TypeError ) : return u''
formats a date as the time until that date .