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

List field with default=[] #667

Open
szakitibi opened this issue Jun 9, 2023 · 2 comments
Open

List field with default=[] #667

szakitibi opened this issue Jun 9, 2023 · 2 comments

Comments

@szakitibi
Copy link

If I remember correctly using default=[] is a big NO-NO according to Plone docs.

@ale-rt
Copy link
Member

ale-rt commented Jun 9, 2023

Yep, it should be defalutFactory=list or default=None or something like that.
It would be great if you could make a PR ;)

@szakitibi
Copy link
Author

Well tested what happens if I simply remove it, since it was only introduced with this commit 14e23a69. The form handle errors the same way. Tested both empty and changed base class case - see PR #668.

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

No branches or pull requests

3 participants