mirror of
https://github.com/hequan2017/seal.git
synced 2026-04-25 03:01:10 +08:00
更改mysql 连接 驱动
更改mysql 连接 驱动
This commit is contained in:
@@ -26,6 +26,7 @@ class EcsCreateView(LoginRequiredMixin, PermissionRequiredMixin, CreateView):
|
||||
template_name = 'assets/ecs-create.html'
|
||||
success_url = reverse_lazy('assets:ecs-list')
|
||||
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
context = {}
|
||||
if '__next__' in self.request.POST: # 为了获取 点击本页之前的 浏览网页
|
||||
@@ -53,6 +54,7 @@ class EcsCreateView(LoginRequiredMixin, PermissionRequiredMixin, CreateView):
|
||||
|
||||
|
||||
|
||||
|
||||
class EcsListView(LoginRequiredMixin, PermissionRequiredMixin, ListView):
|
||||
permission_required = ('assets.view_ecs',)
|
||||
template_name = 'assets/ecs-list.html'
|
||||
|
||||
Reference in New Issue
Block a user