Post the form class (or model if you are generating it from a model).

On Jul 29, 3:17 pm, Jeff Green <jeffhg2...@gmail.com> wrote:
> For example, the field name is Programmer Serial Number but it is being
> displayed
> as Programmer serial number
>
> I have not had this issue in 1.1.1. I was wondering if there was a way to
> ignore the conversion.
>
> On Thu, Jul 29, 2010 at 5:02 PM, Jason <goodri...@gmail.com> wrote:
> > I think Django's been doing that for a long time (not just 1.2.1).
>
> > Probably the quick and easy way to change case would be to use just
> > field.label and pump it into whatever format you want:
>
> > {{ field.label|upper }}
>
> > You'll have to manually create the rest of the html for the label
> > using field.html_name
>
> > I've run into some slight problems figuring out the proper id's for
> > the corresponding labels... Normally it's just
> > id_{{ field.html_name }} but if you get into auto_id's as well as
> > labels for more complex things (radio button lists, etc) it can get a
> > little bit funky.
>
> > On Jul 29, 2:42 pm, Jeff Green <jeffhg2...@gmail.com> wrote:
> > > With Django 1.2.1 it seems that my html template causes the
> > > field.label to display
> > > in lower case except for the first character. Has anyone experienced
> > > this before and how do you
> > > get it display without lower case conversion
>
> > > My html template snippet is:
>
> > > {% for field in form %}
>
> > >     {{ field.label_tag}}
>
> > > Thanks,
> > > Jeff
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django-us...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to