mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-01-11 20:00:26 +01:00
fix(dca): strategy api endpoint returns nothing
This commit is contained in:
@@ -9,6 +9,9 @@ class DCAStrategyViewSet(viewsets.ModelViewSet):
|
|||||||
queryset = DCAStrategy.objects.all()
|
queryset = DCAStrategy.objects.all()
|
||||||
serializer_class = DCAStrategySerializer
|
serializer_class = DCAStrategySerializer
|
||||||
|
|
||||||
|
def get_queryset(self):
|
||||||
|
return DCAStrategy.objects.all().order_by("id")
|
||||||
|
|
||||||
@action(detail=True, methods=["get"])
|
@action(detail=True, methods=["get"])
|
||||||
def investment_frequency(self, request, pk=None):
|
def investment_frequency(self, request, pk=None):
|
||||||
strategy = self.get_object()
|
strategy = self.get_object()
|
||||||
|
|||||||
Reference in New Issue
Block a user