Browse Source

[Update] 修复自定义平台列表在详情页删除失败的bug

pull/3889/head
Bai 5 years ago
parent
commit
d969563e43
  1. 2
      apps/assets/templates/assets/platform_detail.html

2
apps/assets/templates/assets/platform_detail.html

@ -83,7 +83,7 @@ $(document).ready(function () {
var $this = $(this);
var name = "{{ object.name}}";
var uid = "{{ object.id }}";
var the_url = '{% url "api-assets:asset-platform-detail" pk=DEFAULT_PK %}'.replace('{{ DEFAULT_PK }}', uid);
var the_url = '{% url "api-assets:platform-detail" pk=DEFAULT_PK %}'.replace('{{ DEFAULT_PK }}', uid);
var redirect_url = "{% url 'assets:platform-list' %}";
objectDelete($this, name, the_url, redirect_url);
})

Loading…
Cancel
Save