0.0.13
profile routines
This commit is contained in:
@@ -23,7 +23,7 @@ def registration_ajax(request):
|
||||
form = RegistrationForm(data)
|
||||
if not form.is_valid():
|
||||
Dict = {'form': form}
|
||||
html = render_to_string('forms/f_registration.html', Dict)
|
||||
html = render_to_string('forms/f_registration.html', Dict, request=request)
|
||||
return JsonResponse({'html': html}, status=400)
|
||||
|
||||
user = User.objects.create_user(username=form.data['email'], email=form.data['email'], password=form.data['password'])
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<section class="register">
|
||||
<h1>Регистрация</h1>
|
||||
|
||||
<form name = "registration_form" method="post"> {% csrf_token %}
|
||||
<form name="registration_form" method="post">
|
||||
{% csrf_token %}
|
||||
|
||||
|
||||
<div class="switch">
|
||||
|
||||
Reference in New Issue
Block a user