@library.global_function
def admin_link(user):
 url = reverse('admin:users_user_change', args=(user.id,), current_app=admin.site.name)
 link = ('<a href="%s" class="button neutral">%s<i aria-hidden="true" class="icon-wrench"></i></a>' % (url, ugettext('Admin')))
 return Markup(link)

@ library . global_function def admin_link ( user ) : url = reverse ( 'admin:users_user_change' , args = ( user . id , ) , current_app = admin . site . name ) link = ( '<a href="%s" class="button neutral">%s<i aria-hidden="true" class="icon-wrench"></i></a>' % ( url , ugettext ( 'Admin' ) ) ) return Markup ( link )
returns a link to admin a user .