diff --git a/app/apps/api/views/dca.py b/app/apps/api/views/dca.py index 5dd0f06..b5b99ed 100644 --- a/app/apps/api/views/dca.py +++ b/app/apps/api/views/dca.py @@ -59,11 +59,6 @@ class DCAEntryViewSet(viewsets.ModelViewSet): "created_at": ["exact", "gte", "lte", "gt", "lt"], "updated_at": ["exact", "gte", "lte", "gt", "lt"], } - search_fields = ["notes"] - ordering_fields = "__all__" - ordering = ["-date"] - - def get_queryset(self): - # Filter entries by strategies the user has access to - accessible_strategies = DCAStrategy.objects.all() - return DCAEntry.objects.filter(strategy__in=accessible_strategies) + search_fields = ['notes'] + ordering_fields = '__all__' + ordering = ['-date']