Why dont you use a widget with charfield
forms.CharField(max_length=1, widget=forms.Select
(choices=CHOICES))
and your choices are
CHOICE = (
('A', 'A'),
('B', 'B'),
('C', 'C'),
)
On Apr 19, 4:56 pm, amyhalf wrote:
> For the life of me
For the life of me I can't get Django to render even the simplest of
HTML boxes.
Here's a recent example that I have which I cannot get to work.
This is the form:
class CreditCardForm(forms.Form):
fullname = forms.CharField(128, 1, required = True)
mm_expiry = forms.ChoiceField(
2 matches
Mail list logo