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

Boolean fields not working in dynamic fields #311

Closed
rozza opened this issue Oct 10, 2011 · 0 comments
Closed

Boolean fields not working in dynamic fields #311

rozza opened this issue Oct 10, 2011 · 0 comments
Milestone

Comments

@rozza
Copy link

rozza commented Oct 10, 2011

hey,

why DynamincDocument doesn't support boolean dynamic fields?

In [1]: from schemaless.models import *

In [2]: a = Schemaless(ident='a')

In [3]: a.save()

In [4]: a.test_int = 1

In [5]: a.test_char = 'abc'

In [6]: a.test_bool = False

In [7]: a.save()
> db.schemaless.find()                                                                                                                                                                                                                                                   
{ "_cls" : "Schemaless", "_id" : ObjectId("4e92afd36b669338b1000000"), "_types" : [ "Schemaless" ], "ident" : "a", "test_char" : "abc", "test_int" : 1 }                                                                                                                 
@rozza rozza closed this as completed in 153538c Dec 2, 2011
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

1 participant