[Update] 创建/更新 远程应用 使用api (#2940)

* [Update] 创建/更新 远程应用 使用api

* [Update] 优化 params

* [Update] 修改小问题
This commit is contained in:
八千流
2019-07-15 14:42:54 +08:00
committed by BaiJiangJie
parent ab9744d529
commit 9219786f2d
2 changed files with 37 additions and 1 deletions

View File

@@ -46,6 +46,7 @@ class RemoteAppCreateView(PermissionsMixin, SuccessMessageMixin, CreateView):
context = {
'app': _('Applications'),
'action': _('Create RemoteApp'),
'type': 'create'
}
kwargs.update(context)
return super().get_context_data(**kwargs)
@@ -68,6 +69,7 @@ class RemoteAppUpdateView(PermissionsMixin, SuccessMessageMixin, UpdateView):
context = {
'app': _('Applications'),
'action': _('Update RemoteApp'),
'type': 'update'
}
kwargs.update(context)
return super().get_context_data(**kwargs)