|
|
@ -50,12 +50,15 @@ class TradeAction(LoginRequiredMixin, OTPRequiredMixin, View):
|
|
|
|
|
|
|
|
|
|
|
|
if type == "page":
|
|
|
|
if type == "page":
|
|
|
|
type = "modal"
|
|
|
|
type = "modal"
|
|
|
|
|
|
|
|
db_info = db_info.__dict__
|
|
|
|
|
|
|
|
del db_info["_state"]
|
|
|
|
|
|
|
|
del db_info["_original"]
|
|
|
|
context = {
|
|
|
|
context = {
|
|
|
|
"title": f"Trade info ({type})",
|
|
|
|
"title": f"Trade info ({type})",
|
|
|
|
"unique": unique,
|
|
|
|
"unique": unique,
|
|
|
|
"window_content": self.window_content,
|
|
|
|
"window_content": self.window_content,
|
|
|
|
"type": type,
|
|
|
|
"type": type,
|
|
|
|
"db_info": db_info.__dict__,
|
|
|
|
"db_info": db_info,
|
|
|
|
"live_info": live_info,
|
|
|
|
"live_info": live_info,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|