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

Form field for basic array not working #204

Open
Alzpeta opened this issue Apr 19, 2024 · 0 comments
Open

Form field for basic array not working #204

Alzpeta opened this issue Apr 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Alzpeta
Copy link

Alzpeta commented Apr 19, 2024

Package version (if known): v2.2.0

Describe the bug

It is impossible to generate a create form containing an array field with primitive data type items. (e.g. List(String()) )

In the array.js file at this line, it is automatically assumed that the array type field definition contains items.properties, which is not true for primitive datatype arrays, as can be seen in marshmallow_utils

Steps to Reproduce

  1. Create a model field with List(String()) marshmallow definition
  2. Create a new form field in the CreateView for this model field
  3. Open the create form in browser
@Alzpeta Alzpeta added the bug Something isn't working label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant