Hello everyone,

I subclassed the CharField but have run into this problem:

In the form HTML output, the label is ok (it used the verbose_name of the
model field as expected), but the form validation error message uses 'None'
as the field name/label. Appearantly it doesn't know the fields verbose
name. When using the standard Django CharField everything is fine.

When I set the field label explicitly in my code (label='Name'), both label
and form validation use the correct label.

I don't think this expected behaviour?

Kind regards,
Michael Anckaert

--~--~---------~--~----~------------~-------~--~----~
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 
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