jsonmodels icon indicating copy to clipboard operation
jsonmodels copied to clipboard

List of primitives

Open raviv opened this issue 8 years ago • 1 comments

Hi, How do I define a field that is a list of floats? Also, is it possible to defined a field that is a list of list of floats (e.g. float matrix) Thanks.

raviv avatar Jul 05 '17 11:07 raviv

List of floats:

class MyModel(models.Base):
    list_of_floats = fields.ListField(float)

Not sure about float matrix.

avrahamshukron avatar Oct 11 '17 18:10 avrahamshukron