更改mysql 连接 驱动

更改mysql 连接 驱动
This commit is contained in:
何全
2019-03-05 18:04:53 +08:00
parent 26a5fbe509
commit 182460ca8e
9 changed files with 32 additions and 20 deletions

View File

@@ -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'