From 4d1da1d292e1a0f87168940287f520f94b31d78f Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 16 Jul 2019 10:29:20 +0800 Subject: [PATCH 1/8] =?UTF-8?q?[Update]=20=E7=BB=99jumpserver.js=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/templates/_foot_js.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/templates/_foot_js.html b/apps/templates/_foot_js.html index 44c351c10..8dbfc0f70 100644 --- a/apps/templates/_foot_js.html +++ b/apps/templates/_foot_js.html @@ -7,7 +7,7 @@ - + {% endblock %} \ No newline at end of file From 3c166abd2dd296f3333a800f655af90731c03bd4 Mon Sep 17 00:00:00 2001 From: jym503558564 <503558564@qq.com> Date: Tue, 16 Jul 2019 15:25:49 +0800 Subject: [PATCH 7/8] =?UTF-8?q?[Bugfix]=20=E4=BF=AE=E5=A4=8D=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E8=BF=87=E6=BB=A4=E5=99=A8=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=20=E5=88=A0=E9=99=A4=E5=8A=9F=E8=83=BD=E6=97=A0=E6=95=88?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/templates/assets/cmd_filter_detail.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/assets/templates/assets/cmd_filter_detail.html b/apps/assets/templates/assets/cmd_filter_detail.html index b98828f4e..e68cba47c 100644 --- a/apps/assets/templates/assets/cmd_filter_detail.html +++ b/apps/assets/templates/assets/cmd_filter_detail.html @@ -29,7 +29,7 @@ {% trans 'Update' %}
  • - + {% trans 'Delete' %}
  • @@ -164,5 +164,13 @@ $(document).ready(function () { }); updateCMDFilterSystemUsers(system_users) }) +.on('click', '.btn-delete-cmd-filter', function () { + var $this = $(this); + var name = "{{object.name }}"; + var uid = "{{ object.id }}"; + var the_url = '{% url "api-assets:cmd-filter-detail" pk=DEFAULT_PK %}'.replace('{{ DEFAULT_PK }}', uid); + var redirect_url = "{% url 'assets:cmd-filter-list' %}"; + objectDelete($this, name, the_url, redirect_url); +}) {% endblock %} From 018bf809306b4b9333020ad58e04bada5bf07d17 Mon Sep 17 00:00:00 2001 From: BaiJiangJie Date: Tue, 16 Jul 2019 15:38:44 +0800 Subject: [PATCH 8/8] =?UTF-8?q?[Update]=20=E6=B7=BB=E5=8A=A0=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E8=BF=87=E6=BB=A4=E5=99=A8Model=E4=B8=AD=E5=AD=97?= =?UTF-8?q?=E6=AE=B5name=E6=94=B9=E4=B8=BAunique=E7=9A=84=E8=BF=81?= =?UTF-8?q?=E7=A7=BB=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migrations/0036_auto_20190716_1535.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/assets/migrations/0036_auto_20190716_1535.py diff --git a/apps/assets/migrations/0036_auto_20190716_1535.py b/apps/assets/migrations/0036_auto_20190716_1535.py new file mode 100644 index 000000000..317d427f0 --- /dev/null +++ b/apps/assets/migrations/0036_auto_20190716_1535.py @@ -0,0 +1,18 @@ +# Generated by Django 2.1.7 on 2019-07-16 07:35 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('assets', '0035_auto_20190711_2018'), + ] + + operations = [ + migrations.AlterField( + model_name='commandfilter', + name='name', + field=models.CharField(max_length=64, unique=True, verbose_name='Name'), + ), + ]