From 82037831035397dd82583d3275ce01e5b8d37021 Mon Sep 17 00:00:00 2001 From: Daniel Vaz Gaspar Date: Mon, 23 Oct 2023 12:43:53 +0100 Subject: [PATCH] fix: old API api column edit (#2134) * fix: old API api column edit * fix lint --- flask_appbuilder/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_appbuilder/views.py b/flask_appbuilder/views.py index 23ed3936b1..3c2ba0aff4 100644 --- a/flask_appbuilder/views.py +++ b/flask_appbuilder/views.py @@ -471,7 +471,7 @@ def api_column_edit(self, col_name): log.warning("This API is deprecated and will be removed on 2.3.X") filter_rel_fields = None if self.edit_form_query_rel_fields: - filter_rel_fields = self.edit_form_query_rel_fields + filter_rel_fields = self.edit_form_query_rel_fields.get(col_name) ret_json = self._get_related_column_data(col_name, filter_rel_fields) response = make_response(ret_json, 200) response.headers["Content-Type"] = "application/json"