From af16bb3934d47b5bd87db7f2f8691757f1e9097f Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 29 Feb 2024 00:21:56 -0800 Subject: [PATCH] Fix: include monetary, float and doc link values in search filters (#5951) --- src/documents/filters.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/documents/filters.py b/src/documents/filters.py index b760b9779..891f20dde 100644 --- a/src/documents/filters.py +++ b/src/documents/filters.py @@ -161,8 +161,11 @@ class CustomFieldsFilter(Filter): | qs.filter(custom_fields__value_text__icontains=value) | qs.filter(custom_fields__value_bool__icontains=value) | qs.filter(custom_fields__value_int__icontains=value) + | qs.filter(custom_fields__value_float__icontains=value) | qs.filter(custom_fields__value_date__icontains=value) | qs.filter(custom_fields__value_url__icontains=value) + | qs.filter(custom_fields__value_monetary__icontains=value) + | qs.filter(custom_fields__value_document_ids__icontains=value) ) else: return qs