Has anyone ever successfully integrated django-math-captcha into django-registration?
I’ve changed the form in django-registration to be as such:
class RegistrationForm(MathCaptchaForm)
The form displays just fine, and it recognizes when I input anything other than numbers. However, it does not flag wrong answers. For example I input 2+1 = 6 and my registration completed just fine.
Any ideas?
To answer my own question, it is because
MathCaptchaForm.clean()was being overridden byRegistrationForm.clean(). I calledsuper()from withinRegistrationForm.clean()and it worked.New code within
RegistrationForm.clean():