change algo get_address_point_ajax
This commit is contained in:
SDE
2023-07-21 16:35:53 +03:00
parent 57780ef93e
commit c7fe7a1904
2 changed files with 4 additions and 2 deletions

View File

@@ -46,6 +46,8 @@ def get_address_point_ajax(request):
for item in res_data:
item['index'] = i
item['ctrl_name'] = data['ctrl_name']
item['airport_fullname_html'] = f'<b>{item["iata_code"]}</b> - {item["name"]}'
item['airport_fullname'] = f'{item["iata_code"]} - {item["name"]}'
html = f"{html}{render_to_string('widgets/w_ac_input_address_point.html', item)}"
i += 1