2.1.5 get_routes_Dict fix from\to city v2

This commit is contained in:
SDE
2024-12-26 17:27:17 +03:00
parent c94c1a9202
commit 04c4e8c791
3 changed files with 12 additions and 8 deletions

View File

@@ -377,7 +377,10 @@ def create_or_change_route_ajax(request, route_id=None):
if not form.is_valid():
form.initial = form.cleaned_data
Dict.update({'form': form})
Dict.update({
'form': form,
'owner_type': data['owner_type'],
})
html = render_to_string('blocks/profile/b_create_form_poster.html', Dict, request=request)
return JsonResponse({'html': html}, status=400)