Remove unnecessary fields from trade response
This commit is contained in:
parent
62476e5da3
commit
b3bacde8df
|
@ -29,7 +29,7 @@
|
|||
</thead>
|
||||
<tbody>
|
||||
{% for key, item in db_info.items %}
|
||||
{% if key == 'instruments' %}
|
||||
{% if key == 'response' %}
|
||||
<tr>
|
||||
<th>{{ key }}</th>
|
||||
<td>
|
||||
|
|
|
@ -50,12 +50,15 @@ class TradeAction(LoginRequiredMixin, OTPRequiredMixin, View):
|
|||
|
||||
if type == "page":
|
||||
type = "modal"
|
||||
db_info = db_info.__dict__
|
||||
del db_info["_state"]
|
||||
del db_info["_original"]
|
||||
context = {
|
||||
"title": f"Trade info ({type})",
|
||||
"unique": unique,
|
||||
"window_content": self.window_content,
|
||||
"type": type,
|
||||
"db_info": db_info.__dict__,
|
||||
"db_info": db_info,
|
||||
"live_info": live_info,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue