Comme suit
forms.py
from django import forms
CHOICE = (
('', 'Veuillez choisir parmi les choix><'),
('0', 'mignonne'),
('1', 'cool'),
('2', 'passion'),
)
def SampleForm(forms.Form):
select = forms.ChoiceField(widget=forms.Select, choices=CHOICE)
Oui
Recommended Posts