Pass account ID to trade CRUD helper

This commit is contained in:
2022-12-08 07:20:46 +00:00
parent 633894ae75
commit cd89b11611
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ class TradeAction(LoginRequiredMixin, OTPRequiredMixin, ObjectRead):
context_object_name = "positions"
detail_url_name = "trade_action"
detail_url_args = ["type", "trade_id"]
detail_url_args = ["type", "account_id", "trade_id"]
def get_object(self, **kwargs):
trade_id = kwargs.get("trade_id")