Re: choices option in input-field

2007-11-21 Thread Nader
I have read quickly the article "Variable Choice Lists'. I don't have a lot experience with Django, however I would try to explain my case. I have a model in which one of the fields has to be 'SelectedField', therefore I have to use a 'choices' options. class Dataset(models.Model): . .

Re: choices option in input-field

2007-11-20 Thread Malcolm Tredinnick
On Tue, 2007-11-20 at 00:19 -0800, Nader wrote: > Hallo, > > I have a model in which I have to use a input-field with choices > option. > > ACCESS = ( > ('RO', 'readonly'), > ('WO', 'writeonly'), > ('RW', 'readwrite'), > ) > > Class myClass (...) >.. >... >activ

choices option in input-field

2007-11-20 Thread Nader
Hallo, I have a model in which I have to use a input-field with choices option. ACCESS = ( ('RO', 'readonly'), ('WO', 'writeonly'), ('RW', 'readwrite'), ) Class myClass (...) .. ... active = models.IntegerField(choices=ACCESS, radio_admin=True) ... The value for