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"