On Nov 18, 2:56 am, Canhua <[EMAIL PROTECTED]> wrote: > hi, I am trying to create such a kind of field in a model. The field > can only take one or more values from a set of value, each seperated > by such as commas. It seems that there is no built-in field type in > Django. How may I implement this? Any clue is greatly appreciated. > > Best wishes > > Can-Hua Chen
Usually you'd do this as a ManyToMany field. However I know you sometimes do want to do it in a custom model field - I've just posted my implementation at djangosnippets: http://www.djangosnippets.org/snippets/1200/ -- DR. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

