I think you can do what you want with the

ACCOUNTS_PROFILE_FORM_CLASS

https://bitbucket.org/stephenmcd/mezzanine/src/a699b601657cb78f16553f5c02d1443e4234db61/mezzanine/accounts/defaults.py?at=default#cl-40

Otherwise you could probably just monkeypatch the __init__ of the form and
add the captcha field you want.

On Mon, Oct 27, 2014 at 9:02 PM, Wesley <[email protected]> wrote:

> Hi Josh,
>    Actually, I wanna add a captcha validator on the sign in form, that is
> mezzanine.accounts.forms.LoginForm.
> I use django-simple-captcha plugin, so I need a add a field to the
> LoginForm, but I don't wanna change mezzanine code.
> So, I see EXTRA_MODEL_FIELDS is easily used to add fileds to existing
> Model, what about for existing Form?
> I see LoginForm is not inherited from ModelForm, otherwise, I can add
> field to the Model.
>
> Thanks.
> Wesley
>
> Hey Wesley, not that I'm aware of.  What are you trying to do?
>>
>> On Sun, Oct 26, 2014 at 11:08 PM, Wesley <[email protected]> wrote:
>>
>>> Hi all,
>>>    I see there is a settings option named EXTRA_MODEL_FIELDS to add
>>> field to one Model.
>>> Is there one used for Form instead of Model?
>>>
>>> Thanks.
>>> Wesley
>>>
>>> --
>>> 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.
>>>
>>
>>  --
> 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.
>

-- 
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