mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-07-08 13:55:21 +02:00
Remove filtering function superseesed by search_fields
This commit is contained in:
@@ -59,11 +59,6 @@ class DCAEntryViewSet(viewsets.ModelViewSet):
|
|||||||
"created_at": ["exact", "gte", "lte", "gt", "lt"],
|
"created_at": ["exact", "gte", "lte", "gt", "lt"],
|
||||||
"updated_at": ["exact", "gte", "lte", "gt", "lt"],
|
"updated_at": ["exact", "gte", "lte", "gt", "lt"],
|
||||||
}
|
}
|
||||||
search_fields = ["notes"]
|
search_fields = ['notes']
|
||||||
ordering_fields = "__all__"
|
ordering_fields = '__all__'
|
||||||
ordering = ["-date"]
|
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)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user