From db30bcbeb7ec4a4a13753a79c9476fd951ddd47d Mon Sep 17 00:00:00 2001 From: icovada Date: Thu, 8 Jan 2026 21:36:46 +0000 Subject: [PATCH] Remove filtering function superseesed by search_fields --- app/apps/api/views/dca.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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']