fix form new route
This commit is contained in:
SDE
2023-07-28 19:07:36 +03:00
parent 45234121d4
commit c0ed5d5803
4 changed files with 259 additions and 177 deletions

View File

@@ -19,10 +19,19 @@ def new_route_view_ajax(request):
if request.method != 'POST':
raise Http404
data = request.POST
form = CreateRouteForm(data)
if not form.is_valid():
pass
Dict = {
'form': CreateRouteForm()
'form': form
}
# print(form)
html = render_to_string('blocks/profile/b_new_route.html', Dict, request=request)
return JsonResponse({'html': html}, status=200)