diff --git a/ReferenceDataApp/js_views.py b/ReferenceDataApp/js_views.py index d1d1160..b6ae954 100644 --- a/ReferenceDataApp/js_views.py +++ b/ReferenceDataApp/js_views.py @@ -42,8 +42,10 @@ def get_address_point_ajax(request): res_data_str_list = [] i = 0 + for item in res_data: item['index'] = i + item['ctrl_name'] = data['ctrl_name'] res_data_str_list.append(render_to_string('widgets/w_ac_input_address_point.html', item)) i += 1 diff --git a/templates/widgets/w_ac_input_address_point.html b/templates/widgets/w_ac_input_address_point.html index 1a4cbf9..361b915 100644 --- a/templates/widgets/w_ac_input_address_point.html +++ b/templates/widgets/w_ac_input_address_point.html @@ -1,4 +1,4 @@ -