|
|
|
@ -19,7 +19,6 @@ log = logs.get_logger(__name__)
|
|
|
|
|
# Trend directions
|
|
|
|
|
class TrendDirectionList(LoginRequiredMixin, ObjectList):
|
|
|
|
|
list_template = "partials/trend-direction-list.html"
|
|
|
|
|
# model = TrendDirection
|
|
|
|
|
page_title = "List of trend directions for a strategy."
|
|
|
|
|
page_subtitle = None
|
|
|
|
|
|
|
|
|
@ -29,8 +28,6 @@ class TrendDirectionList(LoginRequiredMixin, ObjectList):
|
|
|
|
|
list_url_name = "trenddirections"
|
|
|
|
|
list_url_args = ["type", "strategy_id"]
|
|
|
|
|
|
|
|
|
|
# submit_url_name = "trenddirection_create"
|
|
|
|
|
|
|
|
|
|
def get_queryset(self, **kwargs):
|
|
|
|
|
strategy_id = kwargs.get("strategy_id", None)
|
|
|
|
|
self.extra_context = {"strategy_id": strategy_id}
|
|
|
|
|