修复 sudo 规则删除bug

pull/26/head
yumaojun 2015-12-16 18:34:19 +08:00
parent b8abedc5b9
commit a30ec0c75e
3 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ class IDC(models.Model):
phone = models.CharField(max_length=32, blank=True, null=True, default='', verbose_name=u'联系电话') phone = models.CharField(max_length=32, blank=True, null=True, default='', verbose_name=u'联系电话')
address = models.CharField(max_length=128, blank=True, null=True, default='', verbose_name=u"机房地址") address = models.CharField(max_length=128, blank=True, null=True, default='', verbose_name=u"机房地址")
network = models.TextField(blank=True, null=True, default='', verbose_name=u"IP地址段") network = models.TextField(blank=True, null=True, default='', verbose_name=u"IP地址段")
date_added = models.DateField(auto_now=True, default='', null=True) date_added = models.DateField(auto_now=True, null=True)
operator = models.CharField(max_length=32, blank=True, default='', null=True, verbose_name=u"运营商") operator = models.CharField(max_length=32, blank=True, default='', null=True, verbose_name=u"运营商")
comment = models.CharField(max_length=128, blank=True, default='', null=True, verbose_name=u"备注") comment = models.CharField(max_length=128, blank=True, default='', null=True, verbose_name=u"备注")

View File

@ -16,7 +16,7 @@ from passlib.hash import sha512_crypt
from django.template.loader import get_template from django.template.loader import get_template
from django.template import Context from django.template import Context
from utils import get_rand_pass
from jumpserver.api import logger from jumpserver.api import logger

View File

@ -89,7 +89,7 @@ function remove_sudo(sudo_id){
if (confirm("确认删除")) { if (confirm("确认删除")) {
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: "/jperm/sudo/perm_sudo_delete/", url: "/jperm/sudo/del/",
data: "id=" + sudo_id, data: "id=" + sudo_id,
success: function(msg){ success: function(msg){
alert( "成功: " + msg ); alert( "成功: " + msg );