admin modifies values of pickled fields in db
|Reported by:||Owned by:||Adrian Holovaty|
|Severity:||Keywords:||admin pickle decimal float cpickle|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
What I'm doing:
Store dictionary values in TextFields by using pickle / cPickle
Everything works fine as long as the admin interface doesnt modify the object. I can retreive the pickled objects fine up until the admin contrib modifies the object, even with such tasks as modifying an unrelated field. Dictionary values in the pickled TextFields get modified randomly, mostly doing with floats. Have had floats randomly mutated into Decimals as well as Strings. If the admin interface never manipulates the objects, the state of the pickles seem to be preserved (ha ha).