i usually just encode it as JSON. not as dense; but more universal
syntax, so you get faster decoders in every language
--
Javier
You're right. I forgot about JSON. I guess it can be encoded and
stored as a JSON string and then decoded afterward.
Suggesting this for contrib is premature. The basic criteria for
django.contrib is an optional, defacto standard implementation of
common patterns. I'm not convinced that this is a common pattern. I'm
also not convinced that it's a good pattern to promote in a world of
relational databases, but that's a whole different argument.
Regardless of my opinion, this is a feature that can happily live
external to the Django core. If you want to convince us to put this in
django.contrib, then release it as an external project and show us the
widespread use that your field receives. Numbers talk.
Yours,
Russ Magee %-)
"Ever" is a very long time. I wouldn't be surprised if _eventually_
django-tagging is added to django.contrib. It is certainly a better
candidate for inclusion into django.contrib than the DictField
proposal. However, that doesn't mean it will be added in v1.2.
Jacob addressed django-tagging directly in his blog entry about
django.contrib [1]. To the best of my knowledge, his comments still
hold.
Most importantly, django-tagging is in no way compromised by being
external to django.contrib. The same is true of django-registration,
django-profiles, and any number of other popular external packages.
[1] http://jacobian.org/writing/what-is-django-contrib/
Yours
Russ Magee %-)