#NEWLINE# def get_icon_path( instance , filename ) : #NEWLINE# #INDENT# if instance . pk : #NEWLINE# #INDENT# group = Group . objects . get ( pk = instance . pk ) #NEWLINE# if instance . icon : #NEWLINE# #INDENT# return group . icon . path . replace ( settings . MEDIA_ROOT , '' ) #NEWLINE# #UNINDENT# #UNINDENT# return build_filename ( instance , filename )