Browse Source

HOT-FIX: inclui fields m2m no filterset da api

pull/3484/head
Leandro Roberto 3 years ago
parent
commit
f35add6d2f
  1. 2
      sapl/api/core/filters.py

2
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']

Loading…
Cancel
Save