#NEWLINE# @ register . simple_tag #NEWLINE# def lofi_link( object , anchor = '' ) : #NEWLINE# #INDENT# '\n    Return A tag with lofi_link to object.\n    ' #NEWLINE# url = ( ( hasattr ( object , 'get_absolute_url' ) and object . get_absolute_url ( ) ) or None ) #NEWLINE# anchor = ( anchor or smart_text ( object ) ) #NEWLINE# return mark_safe ( ( '<a href="%slofi/">%s</a>' % ( object , escape ( anchor ) ) ) )