models.BooleanField returns integer
|Reported by:||anonymous||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||1.2|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I declare a field as models.BooleanField(default=False) in a model, but accessing it returns an integer 0 instead of boolean False. This is a rather insiduous bug, since inside of Python they'll evaluate to the same thing, but I happen to be sending that data to a client written in Java.