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 of primitives #88

Open
raviv opened this issue Jul 5, 2017 · 1 comment
Open

List of primitives #88

raviv opened this issue Jul 5, 2017 · 1 comment

Comments

@raviv
Copy link

raviv commented Jul 5, 2017

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.

@avrahamshukron
Copy link
Contributor

List of floats:

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

Not sure about float matrix.

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

No branches or pull requests

2 participants