Update filters.py
This commit is contained in:
parent
6ee2d1ac7d
commit
bcd08a7eda
@ -417,11 +417,9 @@ class CustomFieldQueryParser:
|
|||||||
value_field_name = CustomFieldInstance.get_value_field_name(
|
value_field_name = CustomFieldInstance.get_value_field_name(
|
||||||
custom_field.data_type,
|
custom_field.data_type,
|
||||||
)
|
)
|
||||||
if custom_field.data_type == CustomField.FieldDataType.MONETARY and op in (
|
if (
|
||||||
"gt",
|
custom_field.data_type == CustomField.FieldDataType.MONETARY
|
||||||
"gte",
|
and op in self.EXPR_BY_CATEGORY["arithmetic"]
|
||||||
"lt",
|
|
||||||
"lte",
|
|
||||||
):
|
):
|
||||||
value_field_name = "value_monetary_amount"
|
value_field_name = "value_monetary_amount"
|
||||||
has_field = Q(custom_fields__field=custom_field)
|
has_field = Q(custom_fields__field=custom_field)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user