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: > > <label for="id_firstname" class="left">First name:</label> > > 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 post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---