Re: Proposal for contrib feature (DictionaryField in models)

2009-08-11 Thread Mark Ferrer
You're right. I forgot about JSON. I guess it can be encoded and stored as a JSON string and then decoded afterward. On Aug 11, 3:19 pm, Javier Guerra wrote: > On Tue, Aug 11, 2009 at 2:11 PM, Mark Ferrer wrote: > > I call it a DictionaryField and it takes a Python diction

Proposal for contrib feature (DictionaryField in models)

2009-08-11 Thread Mark Ferrer
Hi everyone, This is my first time here, and I've been holding on to some code for a custom model field type for a little while now. I call it a DictionaryField and it takes a Python dictionary object and stores it in a database as a text field. The default storage format is "key1=foo;key2=bar". Th