#NEWLINE# @ register . inclusion_tag ( 'modeladmin/includes/result_row.html' , takes_context = True ) #NEWLINE# def result_row_display( context , index ) : #NEWLINE# #INDENT# obj = context [ 'object_list' ] [ index ] #NEWLINE# view = context [ 'view' ] #NEWLINE# context . update ( { #NEWLINE# #INDENT# 'obj' : obj , #NEWLINE# 'action_buttons' : view . get_buttons_for_obj ( view ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# return context