Pull object names from model definitions in CRUD views
This commit is contained in:
@@ -70,16 +70,14 @@ class PositionAction(LoginRequiredMixin, View):
|
||||
info = account.client.get_position_info(symbol)
|
||||
print("ACCT INFO", info)
|
||||
|
||||
items = get_positions(request.user, account_id)
|
||||
if type == "page":
|
||||
type = "modal"
|
||||
context = {
|
||||
"title": f"Hooks ({type})",
|
||||
"unique": unique,
|
||||
"window_content": self.window_content,
|
||||
"items": items,
|
||||
"type": type,
|
||||
"items": info,
|
||||
}
|
||||
context["items"] = info
|
||||
|
||||
return render(request, template_name, context)
|
||||
|
||||
Reference in New Issue
Block a user