def edit_del_link(obj): #m_objs = master_field.model.objects.all() return u"<a class='edit' edit='%s?_lock=1&%s=%s' href='javascript:void(0)'>%s</a> <a class='delete' delete='%s_op_/_delete/?K=%s' href='javascript:void(0)'>%s</a>"%(\ urls.get_obj_url(obj), filter, key, ugettext(u'修改'), urls.get_model_data_url(master_field.model), urls.get_obj_url(obj).split("/")[-2], ugettext(u'删除'))
def edit_link(obj): return u"<a class='edit' href='%s?%s=%s?_lock=1'>%s</a>"%(\ urls.get_obj_url(obj), filter, key, obj)