0.8.43 change profile validation
This commit is contained in:
@@ -244,8 +244,8 @@ def change_profile_confirm_ajax(request):
|
|||||||
}
|
}
|
||||||
form = RegistrationForm(data, **kwargs)
|
form = RegistrationForm(data, **kwargs)
|
||||||
if not form.is_valid():
|
if not form.is_valid():
|
||||||
form.initial = form.cleaned_data
|
form.initial = data
|
||||||
Dict = {'profile_form': form}
|
Dict = {'profileForm': form}
|
||||||
|
|
||||||
html = render_to_string('blocks/profile/b_profile.html', Dict, request=request)
|
html = render_to_string('blocks/profile/b_profile.html', Dict, request=request)
|
||||||
return JsonResponse({'html': html}, status=400)
|
return JsonResponse({'html': html}, status=400)
|
||||||
|
|||||||
Reference in New Issue
Block a user