I would make a pickle field, too.

I tried this:

---------------------------------------------------------

class Preference(models.Model):

     ...

     def _get_value(self):
         return pickle.loads(self._value)

     def _set_value(self, value):
         self._value = pickle.dumps(value)

     _value = models.TextField()
     value = property(_get_value, _set_value)

     ...

---------------------------------------------------------


In a short test works this seems to work...

Question: Is this a good idea?


-- 
Mfg.

Jens Diemer


----
A django powered CMS: http://www.pylucid.org


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to