Commit f6722c5a authored by BaiJiangJie's avatar BaiJiangJie

[Update] WebTerminal 跳转添加时间戳

parent 48826a9a
# ~*~ coding: utf-8 ~*~ # ~*~ coding: utf-8 ~*~
# #
import time
from django.views.generic import ListView, UpdateView, DeleteView, \ from django.views.generic import ListView, UpdateView, DeleteView, \
DetailView, View DetailView, View
from django.utils.translation import ugettext as _ from django.utils.translation import ugettext as _
...@@ -128,7 +129,8 @@ class TerminalConnectView(PermissionsMixin, DetailView): ...@@ -128,7 +129,8 @@ class TerminalConnectView(PermissionsMixin, DetailView):
class WebTerminalView(View): class WebTerminalView(View):
def get(self, request, *args, **kwargs): 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): class WebSFTPView(View):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment