Implement more validation and conversion
This commit is contained in:
@@ -36,7 +36,6 @@ class Positions(LoginRequiredMixin, View):
|
||||
template_name = f"wm/{type}.html"
|
||||
unique = str(uuid.uuid4())[:8]
|
||||
items = get_positions(request.user, account_id)
|
||||
print("ITEMS", items)
|
||||
if type == "page":
|
||||
type = "modal"
|
||||
context = {
|
||||
@@ -68,7 +67,6 @@ class PositionAction(LoginRequiredMixin, View):
|
||||
|
||||
account = Account.get_by_id(account_id, request.user)
|
||||
info = account.client.get_position_info(symbol)
|
||||
print("ACCT INFO", info)
|
||||
|
||||
if type == "page":
|
||||
type = "modal"
|
||||
|
||||
Reference in New Issue
Block a user