Re: field.label in template converts to lower case in 1.2.1

2010-07-30 Thread Jeff Green
Thanks Jason! That fixed the issue. On Fri, Jul 30, 2010 at 10:23 AM, Jason wrote: > Actually - make that change to the rest of the field options too. The > word wrap threw me off there at the end. > > On Jul 30, 8:16 am, Jason wrote: > > Looks like you are generating the fields in two differen

Re: field.label in template converts to lower case in 1.2.1

2010-07-30 Thread Jason
Actually - make that change to the rest of the field options too. The word wrap threw me off there at the end. On Jul 30, 8:16 am, Jason wrote: > Looks like you are generating the fields in two different cases. > Here's the second one: > >                 self.fields[config.ConfigurationName] = >

Re: field.label in template converts to lower case in 1.2.1

2010-07-30 Thread Jason
Looks like you are generating the fields in two different cases. Here's the second one: self.fields[config.ConfigurationName] = forms.ChoiceField( choices=choicelist, required=False) Change that to:

Re: field.label in template converts to lower case in 1.2.1

2010-07-30 Thread Jeff Green
Here is my form class class StationInfo( forms.Form): def __init__( self, *args, **kwargs): super( StationInfo, self).__init__( *args, **kwargs) request = args[1] selecttuple = "choice0", "--Select One--" userid = threadlocals.get_current_user() user

Re: field.label in template converts to lower case in 1.2.1

2010-07-29 Thread Jason
Post the form class (or model if you are generating it from a model). On Jul 29, 3:17 pm, Jeff Green 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 wa

Re: field.label in template converts to lower case in 1.2.1

2010-07-29 Thread Jeff Green
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 wrote: > I think Django's been doing that for a l

Re: field.label in template converts to lower case in 1.2.1

2010-07-29 Thread Jason
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

field.label in template converts to lower case in 1.2.1

2010-07-29 Thread Jeff Green
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