From f6722c5a26d5cbe409ac823d1875b5fd39877065 Mon Sep 17 00:00:00 2001 From: BaiJiangJie Date: Thu, 22 Aug 2019 12:39:32 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20WebTerminal=20=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=B6=E9=97=B4=E6=88=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/terminal/views/terminal.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/terminal/views/terminal.py b/apps/terminal/views/terminal.py index 5ddb9312e..6396094ab 100644 --- a/apps/terminal/views/terminal.py +++ b/apps/terminal/views/terminal.py @@ -1,5 +1,6 @@ # ~*~ coding: utf-8 ~*~ # +import time from django.views.generic import ListView, UpdateView, DeleteView, \ DetailView, View from django.utils.translation import ugettext as _ @@ -128,7 +129,8 @@ class TerminalConnectView(PermissionsMixin, DetailView): class WebTerminalView(View): def get(self, request, *args, **kwargs): - return redirect('/luna/?' + request.GET.urlencode()) + redirect_url = '/luna/?_={}&'.format(int(time.time())) + return redirect(redirect_url + request.GET.urlencode()) class WebSFTPView(View):