0.8.39 change profile validation
This commit is contained in:
@@ -236,7 +236,11 @@ def change_profile_confirm_ajax(request):
|
||||
data = json.loads(request.body)
|
||||
|
||||
from .forms import RegistrationForm
|
||||
kwargs = {'not_required_password': True}
|
||||
kwargs = {
|
||||
'not_required_password': True,
|
||||
'not_required_agreement': True,
|
||||
'not_required_email': True
|
||||
}
|
||||
form = RegistrationForm(data, **kwargs)
|
||||
if not form.is_valid():
|
||||
form.initial = form.cleaned_data
|
||||
|
||||
Reference in New Issue
Block a user