cfpb / sheer

A tool for loading arbitrary content into Elasticsearch and serving that content on the web.
Creative Commons Zero v1.0 Universal
29 stars 23 forks source link

don't coerce None to string #62

Closed dpford closed 10 years ago

dpford commented 10 years ago

Previously, if a value was None, but that field was mapped to "string", None was being coerced into a string.

None shouldn't need to be coerced into a string (or any other type). In templates, "if [variable that should be None]" was returning True because "None" is an actual string.

himedlooff commented 10 years ago

Works great, thanks!