Also, do have a look at crispy-forms.

-Venkat


On Mon, Apr 8, 2013 at 7:59 AM, Ben Carleton <carle...@vanoc.net> wrote:

>  You can use the label attribute on your form fields to override the
> default labels:
>
> dn = forms.CharField(label="dn")
> cv = forms.CharField(label="cv")
>
> -- Ben
>
>
> On 4/7/2013 10:11 PM, lx wrote:
>
> hi, I'm using the forms,and* the code is:*
>
>  from django import forms
> class dcForm(forms.Form):
>         """
>         """
>         TOPIC_CHOICES = ( ('cnccdn', 'cnccdn.com'), ('lxcdns', 'lxcdns.com'),
> ('wscdns', 'wscdns.com'),)
>         dnssystem = forms.ChoiceField(choices=TOPIC_CHOICES)
>         dn = forms.CharField()
>         cv = forms.CharField()
>
>  *the template is:*
>
>  <form method="POST" action="." {%if form.is_multipart %}
> enctype="multipart/form-data"{% endif %}>
>         <table border="0" width="1270px"
> style="background-color:#ffff99;text-align:top;">
>         {{ form.as_table }}
>
>
>
>  the WEB is:
> [image: 内嵌图片 1]
>
>  *I want to replace the "Dnssystem, Dn, Cv" to "dnssystem, dn, cv".*
> How to solve it?
> Thank you
>
>
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

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


<<image/jpeg>>

Reply via email to