change algo get_address_point_ajax
This commit is contained in:
SDE
2023-07-21 15:16:18 +03:00
parent 90da6ba84c
commit 0e882b89f0
2 changed files with 5 additions and 4 deletions

View File

@@ -42,15 +42,16 @@ def get_address_point_ajax(request):
res_data_str_list = []
i = 0
html = ''
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))
html = f"{html}{render_to_string('widgets/w_ac_input_address_point.html', item)}"
i += 1
res_Dict = {
'res_search_list': res_data_str_list
'res_search_list': html
}
return JsonResponse(res_Dict)