diff --git a/AuthApp/js_views.py b/AuthApp/js_views.py index 3294739..bb35250 100644 --- a/AuthApp/js_views.py +++ b/AuthApp/js_views.py @@ -244,8 +244,8 @@ def change_profile_confirm_ajax(request): } form = RegistrationForm(data, **kwargs) if not form.is_valid(): - form.initial = form.cleaned_data - Dict = {'profile_form': form} + form.initial = data + Dict = {'profileForm': form} html = render_to_string('blocks/profile/b_profile.html', Dict, request=request) return JsonResponse({'html': html}, status=400)