Skip to content

Form field for basic array not working #204

@Alzpeta

Description

@Alzpeta

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions