Re: order of fields in a newform

2007-05-15 Thread Bram - Smartelectronix
Malcolm Tredinnick wrote: >> Is there any way to explicitly order fields? > > This is one of those cases where reading the newforms source is going to > be the best way to work out the answers. It shouldn't be too hard for > anybody who wants this kind of depth to trace through what is going on.

Re: order of fields in a newform

2007-05-15 Thread Malcolm Tredinnick
On Tue, 2007-05-15 at 13:18 +0200, Bram - Smartelectronix wrote: > Hey everyone, > > > How do I change the order of the fields in a newform: > > class ContactForm(forms.Form): >to = forms.ModelChoiceField(ContactEmail.objects.all()) >message = forms.CharField(widget=forms.Textarea()) >

order of fields in a newform

2007-05-15 Thread Bram - Smartelectronix
Hey everyone, How do I change the order of the fields in a newform: class ContactForm(forms.Form): to = forms.ModelChoiceField(ContactEmail.objects.all()) message = forms.CharField(widget=forms.Textarea()) def __init__(self, user, *args, **kwargs): super(ContactForm, self).__init