From f35add6d2fa76e5501c38101bc0fd176b9fe2b76 Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Fri, 5 Nov 2021 10:12:00 -0300 Subject: [PATCH] HOT-FIX: inclui fields m2m no filterset da api --- sapl/api/core/filters.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sapl/api/core/filters.py b/sapl/api/core/filters.py index 8ece06240..a718c0d67 100644 --- a/sapl/api/core/filters.py +++ b/sapl/api/core/filters.py @@ -51,7 +51,9 @@ class SaplFilterSetMixin(FilterSet): if f_str not in fields: f = model._meta.get_field(f_str) + if f.many_to_many: + fields[f_str] = ['exact'] continue fields[f_str] = ['exact']