On Thu, Apr 3, 2008 at 11:31 PM, Iamnewbie <[EMAIL PROTECTED]> wrote:

>
> I am using modelforms instead of newforms. however, I found I have no
> place to use my customized label for each field. newforms offers
>
> forms.ChoiceField(label='MyOwnLabel')
>
> but I can not do it under modelforms, anyone has figured out how to do
> it? I searched djangoproject, nothing found about my problem. seems
> nobody has my situation, all of them would like show database field
> name to their customers?
>
> Thanks for any help in advance.
>

ModelForm docs say that the label is set to the verbose_name of the model
field (with the first character capitalized).  So if you don't want to
expose database field names to customers, just set the model fields verbose
names to what you'd like to use instead.

Karen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to