ChoiceField Being Unpatriotic

2010-04-17 Thread amyhalf
Hi, all! For the life of me I can't get anything to show up in a drop-down. Here's the model: class States(models.Model): id = models.IntegerField(unique = True, primary_key = True) abbrev = models.CharField(max_length = 2, blank = False) long_form = models.CharField(max_

Re: ChoiceField Being Unpatriotic

2010-04-18 Thread amyhalf
yset=States.objects.all()) > > form = AddressForm() > return render_to_response('subscribe_step2.html', > { 'form' : form, > 'user_account' :  user_account }) > > On Apr 17, 5:34 pm, amyhalf wrote: > > > > > > > Hi, all! > > > F

Please help me make a SELECT box!

2010-04-19 Thread amyhalf
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(