I have updated Mezzanine to 4.0.1 and found out that the code which 
registers additional field for forms is not working anymore.
I also want to move to reCaptcha. For that I have downloaded 
django-recaptcha and have following code:

from captcha import fields as captcha_fields

GREATEST_ID = max(c[0] for c in mezzanine_fields.NAMES)
ID = GREATEST_ID + 1
NAME = 'CAPTCHA'
setattr(mezzanine_fields, NAME, ID)
mezzanine_fields.NAMES = list(mezzanine_fields.NAMES)
mezzanine_fields.NAMES.append((ID, _('Captcha')))

mezzanine_fields.NAMES = tuple(mezzanine_fields.NAMES)
mezzanine_fields.CLASSES[ID] = captcha_fields.ReCaptchaField

The problem is that registered field doesnt appear in admin. Can anybody 
suggest something?

P.S. Also I have found that it is possible to user FORM_EXTRA_FIELDS in 
settings but no good example is provided. Can that help? Can anybody post 
an example of usage?

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to