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

how to make validator for this? #125

Open
aliscie opened this issue May 29, 2021 · 1 comment
Open

how to make validator for this? #125

aliscie opened this issue May 29, 2021 · 1 comment

Comments

@aliscie
Copy link

aliscie commented May 29, 2021

how to make validator for this?

@hobbbb
Copy link

hobbbb commented Dec 10, 2021

my method

class MSelectField(MultiSelectField):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

        # Bug with validators
        self.validators += kwargs.get("validators", [])

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