def admin_link_custom(site, model, text, classes='', extra_path=''): return link(admin_url_for_class(site, model)+extra_path, text, classes)
def admin_link_for_add(site, model, params=''): return link(admin_url_for_class(site, model)+'add/'+params, ' ', 'addlink')