Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Passing specifc config to CaptchaField #218

Open
Pyvonix opened this issue Nov 26, 2022 · 0 comments
Open

Feature request: Passing specifc config to CaptchaField #218

Pyvonix opened this issue Nov 26, 2022 · 0 comments

Comments

@Pyvonix
Copy link

Pyvonix commented Nov 26, 2022

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

Repository owner deleted a comment Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@Pyvonix and others