Fix all tab content being changed at once
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import json
|
||||
import urllib
|
||||
import uuid
|
||||
from copy import deepcopy
|
||||
|
||||
from django.conf import settings
|
||||
@@ -384,6 +385,7 @@ class DrilldownContextModal(APIView):
|
||||
# Make the time nicer
|
||||
# for index, item in enumerate(results["object_list"]):
|
||||
# results["object_list"][index]["time"] = item["time"]+"SSS"
|
||||
unique = str(uuid.uuid4())[:8]
|
||||
context = {
|
||||
"net": query_params["net"],
|
||||
"channel": query_params["channel"],
|
||||
@@ -398,6 +400,7 @@ class DrilldownContextModal(APIView):
|
||||
"mtype": query_params["mtype"],
|
||||
"nick": query_params["nick"],
|
||||
"params": query_params,
|
||||
"unique": unique,
|
||||
}
|
||||
if request.user.is_superuser:
|
||||
if query:
|
||||
@@ -465,6 +468,7 @@ class ThresholdInfoModal(APIView):
|
||||
|
||||
# SAFE BLOCK END #
|
||||
|
||||
unique = str(uuid.uuid4())[:8]
|
||||
context = {
|
||||
"net": net,
|
||||
"nick": nick,
|
||||
@@ -475,5 +479,6 @@ class ThresholdInfoModal(APIView):
|
||||
"inter_users": inter_users,
|
||||
"num_users": num_users,
|
||||
"num_chans": num_chans,
|
||||
"unique": unique,
|
||||
}
|
||||
return render(request, self.template_name, context)
|
||||
|
||||
Reference in New Issue
Block a user