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

Keep order and number of entries in list of FieldList errors #257

Closed
the-tosh opened this issue Feb 20, 2016 · 1 comment
Closed

Keep order and number of entries in list of FieldList errors #257

the-tosh opened this issue Feb 20, 2016 · 1 comment

Comments

@the-tosh
Copy link

@the-tosh the-tosh commented Feb 20, 2016

Hi. I use WTForms 2.1.0 and I'd like to discuss this issue one more time.

In modern SPA applications where backend usually don't render any forms it's sometimes difficult or just inconvenient to validate each field separately as you offered in above-mentioned topic. Also, why someone should do it if form.validate() can validate all fields correctly? All but FieldList.

So, I guess it would be great if FieldList returned as many error objects as it received entries if there's at least one error. Otherwise, it should return empty list as usual.

This patch is already available in my fork, but I'll try to attach commit here (github UI sometimes is not obvious to me).

UPD: Here is the pull request. #258

@davidism
Copy link
Member

@davidism davidism commented Jun 13, 2018

Closed by #407

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants