hmarr/mongoengine — Issue #311: Boolean fields not working in dynamic fields
Author: rozza
Created: 2011-10-10 09:08:24+00:00
State: open

> hey,
>
> why DynamincDocument doesn't support boolean dynamic fields?
>
> ```python
> 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 }
> ```
>