Author: adrian
Date: 2007-01-08 21:37:22 -0600 (Mon, 08 Jan 2007)
New Revision: 4296

Modified:
  django/trunk/django/newforms/forms.py
Log:
newforms: Fixed Unicode issue on Python 2.3 when a BoundField's __unicode__() 
included non-ASCII characters. Thanks for reporting the error, Johannes 
Froehlich

Modified: django/trunk/django/newforms/forms.py
===================================================================
--- django/trunk/django/newforms/forms.py       2007-01-08 20:28:31 UTC (rev 
4295)
+++ django/trunk/django/newforms/forms.py       2007-01-09 03:37:22 UTC (rev 
4296)
@@ -99,7 +99,7 @@
                if errors_on_separate_row and bf_errors:
                    output.append(error_row % bf_errors)
                label = bf.label and bf.label_tag(escape(bf.label + ':')) or ''
-                output.append(normal_row % {'errors': bf_errors, 'label': 
label, 'field': bf})
+                output.append(normal_row % {'errors': bf_errors, 'label': 
label, 'field': unicode(bf)})
        if top_errors:
            output.insert(0, error_row % top_errors)
        if hidden_fields: # Insert any hidden fields in the last row.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django 
updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to