Hi, I'm curious about django-hstore's design choice of casting many data types to string. What is the purpose of this? I understand that Hstore can only hold strings but would it not be simpler to cast all data as JSON string upon entry into the DB and loaded from JSON upon retrieval, transparently preserving data common types? For the sake of backwards-compatibility, this could be a feature turned on via a field-parameter.
I did this (admittedly not so eloquently) on an fork of the old django-hstore module (
https://github.com/alukach/django-hstore), which is now quite out of date with the djangonaut's version. I just upgraded a project to use the official djangonaut version of the package and, to maintain this feature, created a bit of a shim using a mixin and some odd-usage of the @property decorator (
https://gist.github.com/alukach/b6d0c52868cf0caba36d).
Is there any reason why the library is not written to support this out-of-the-box?
Thanks.
p.s. This is my first post to the group so apologies if this is a well-discussed topic or if I breached any etiquette. I was unable to find any information about it through the search.
Anthony