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):
.
.
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
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
3 matches
Mail list logo