#NEWLINE# def admin_thumbnail( self ) : #NEWLINE# #INDENT# func = getattr ( self , 'get_admin_thumbnail_url' , None ) #NEWLINE# if ( func is None ) : #NEWLINE# #INDENT# return _ ( 'An "admin_thumbnail" photo size has not been defined.' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if hasattr ( self , 'get_absolute_url' ) : #NEWLINE# #INDENT# return ( '<a href="%s"><img src="%s"></a>' % ( self . get_absolute_url ( ) , func ( ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( '<a href="%s"><img src="%s"></a>' % ( self . image . url , func ( ) ) )