2008/7/3, urukay <[EMAIL PROTECTED]>:
>
>
>   yes, but it's only for limpidity :) and I need the user to chose only one
>  option from the list. Just can't count on that user wil chose to fill only
>  one field with choices if there are more possible fields with choices.
>  And it isn't possible to add to oe field multiple choices lists (i mena
>  somethink like choices1 =..., choices2 = ... etc), is it?
>  Or maybe completely misapprehended what u wrote me :D but really, thanks a
>  lot anyway :)

You can do:

CHOICES1 = (
    ('1', 'Red'),
    ('2', 'Green'),
    ('3', 'Blue'),
    ('5', 'Brown'),
)

CHOICES2 = (
    ('0', 'Basic Colors'),
    ('4', 'Other Colors'),
)

and pass what you want to the model.

If you want the user to select only C1 you can do choices = CHOICES1

and if you want to select all the set you can do choices = CHOICES1 + CHOICES2

-- 
Alessandro Ronchi
Skype: aronchi
http://www.alessandroronchi.net

SOASI Soc.Coop. - www.soasi.com
Sviluppo Software e Sistemi Open Source
Sede: Via Poggiali 2/bis, 47100 Forlì (FC)
Tel.: +39 0543 798985 - Fax: +39 0543 579928

Rispetta l'ambiente: se non ti è necessario, non stampare questa mail

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