Skip to content

Feature request: Passing specifc config to CaptchaField #218

@Pyvonix

Description

@Pyvonix

Hi,

Thank for the great library. I use it since a while.

I look for a way to pass specific config to one CaptchaField, and not as default config!

We could imagine a use case, where users want to use different generators or apply different length on some forms.
But in the current design this only possible to modify all captcha, not only one.

Example wished forms.py:

class SomeForm:
    captcha = CaptchaField(label='Captcha',
                                           required=True,
                                           config={"CAPTCHA_LENGTH": 8,
                                                        "CAPTCHA_CHALLENGE_FUNCT": "captcha.helpers.random_char_challenge"})

Did you envisage that kind of improvement?

Thank

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions