On Dec 19, 2007 12:41 PM, Norman Harman <[EMAIL PROTECTED]> wrote:
> Now I find my self needing to save lists and restore python lists from db.
>
> save is np.
>
>       def save(self):
>          # must convert to_email list into string
>          self.to_email = repr(self.to_email)
>          super(Email, self).save()
>
> But I'm not sure where to convert string back into list on select?
>
> I could use a python property to do change at attribute access instead of at 
> db
> write/read, not the best solution but in this instance not horrid.
>
>
> What would be best practice for this issue?

If you're using trunk, you might take a look at some recent changes
and documentation[1] that make this a bit easier to deal with.

-Gul

[1] http://www.djangoproject.com/documentation/custom_model_fields/

--~--~---------~--~----~------------~-------~--~----~
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