Closed hgenru closed 9 years ago
It seems that ListField can take as items_types only Base model children
@hgenru try this:
from jsonmodels import models, fields
class TestModel(models.Base):
test_list = fields.ListField(str)
fields are only to define fields, for type you can put basic types.
Yet from what I see there is problem with generation of json schema - will check it today.
Fixed in versions 1.4.1
and 2.0.1
.
I try run simple code: