Re: How do I pass label's attributes in newforms

2007-04-25 Thread Brian Rosner
On 2007-04-25 17:27:26 -0600, RollyF <[EMAIL PROTECTED]> said: > > canen, > > Thank you for your reply but I am not sure if I am getting this right. > I am getting an "Exception Value: __init__() got an unexpected > keyword argument 'attrs'" with the following code > > class

Re: How do I pass label's attributes in newforms

2007-04-25 Thread RollyF
canen, Thank you for your reply but I am not sure if I am getting this right. I am getting an "Exception Value: __init__() got an unexpected keyword argument 'attrs'" with the following code class CreateGuestUserForm(forms.Form): first_name = forms.CharField(label='First Name',

Re: How do I pass label's attributes in newforms

2007-04-25 Thread canen
You would use the attrs argument when declaring the field. . first_name = CharField('First name', attrs={'class': 'left'}) . On Apr 25, 1:02 pm, RollyF <[EMAIL PROTECTED]> wrote: > How do I do this using newforms if I want my output to be: > > First name: > > I want to know how to pass

How do I pass label's attributes in newforms

2007-04-25 Thread RollyF
How do I do this using newforms if I want my output to be: First name: I want to know how to pass the "class" to the output. TIA, Rolly --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To