There's no set data field for models, but if you wanted
to store the value as a string you could serialize it:

  >>> from django.utils import simplejson
  >>> simplejson.dumps(list(set(('tag1', 'tag2', 'tag1'))))
  '["tag1", "tag2"]'

Then when you retrieve it, reverse the process:

  >>> set(simplejson.loads('["tag1", "tag2"]'))
  set([u'tag1', u'tag2'])

--
Jeff Bauer
Rubicon, Inc.


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