class RegistrationsAdmin(object):
list_display = ['reg_user', 'network_ip', 'network_port', 'url']
list_display_links = [""] #禁用编辑
list_per_page = 20
search_fields = ['reg_user', 'network_ip']
#object_list_template = "model_list.html"
def has_add_permission(self): # 禁用添加按钮
return False
def has_delete_permission(self):# 禁用删除按钮
return False