views:

77

answers:

2

I have

`   CATEGORY_CHOICES = (
     ('A', 'B', 'C')
    )`

and I would let field:

myChoice = models.CharField(choices=CATEGORY_CHOICES)

have many values from CATEGORY_CHOICES (1-3).

I am just starting use Django so an example will be nice :)

+1  A: 

You may want to use

myChoice = models.CommaSeparatedIntegerField()
Lakshman Prasad
A: 

Are you horribly opposed to using a ManyToMany relationship? This relationship type is designed for exactly what you're trying to do. It would create another table in the database instead of being a list in Python, but it would get the job done.

Jack M.