0.0.50
fix form new route
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user