#NEWLINE# @ register . simple_tag #NEWLINE# def domadmin_actions( daid , domid ) : #NEWLINE# #INDENT# actions = [ { #NEWLINE# #INDENT# 'name' : 'removeperm' , #NEWLINE# 'url' : '{0}?domid={1}&daid={2}' . format ( reverse ( 'admin:permission_remove' ) , domid , daid ) , #NEWLINE# 'img' : 'fa fa-trash' , #NEWLINE# 'title' : _ ( 'Remove this permission' ) , #NEWLINE# #UNINDENT# } ] #NEWLINE# return render_actions ( actions )