diff options
Diffstat (limited to 'ishtar_common/forms.py')
| -rw-r--r-- | ishtar_common/forms.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ishtar_common/forms.py b/ishtar_common/forms.py index 899cdc6d1..9558186bb 100644 --- a/ishtar_common/forms.py +++ b/ishtar_common/forms.py @@ -368,9 +368,14 @@ class CustomForm(BSForm): "json_field__key", "json_field__value_type", "json_field__name", + "json_field__content_type__model", ).order_by("order") for field in q.all(): - key = "data__" + field["json_field__key"] + key = "data__" + # base find used in find form -> clearly identify them + if field["json_field__content_type__model"] == "basefind": + key = "get_first_base_find__" + key + key += field["json_field__key"] field_cls, widget = forms.CharField, None if field["json_field__value_type"] in JSON_VALUE_TYPES_FIELDS: field_cls, widget = JSON_VALUE_TYPES_FIELDS[ |
