From 48d01cbe80b739681dda62a1fb5395a59333a662 Mon Sep 17 00:00:00 2001 From: Stefano Apostolico Date: Mon, 14 Oct 2024 12:47:46 +0200 Subject: [PATCH] add project and organization filters to API --- src/aurora/api/viewsets/record.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aurora/api/viewsets/record.py b/src/aurora/api/viewsets/record.py index dc40dc01..9db5e9d5 100644 --- a/src/aurora/api/viewsets/record.py +++ b/src/aurora/api/viewsets/record.py @@ -14,7 +14,7 @@ class RecordFilter(filters.FilterSet): class Meta: model = Record - fields = ["registration", "after", "id"] + fields = ["registration", "after", "id", "registration__project", "registration__project__organization"] class RecordPaginator(CursorPagination):