Commits

Anonymous committed 2904fbf

ReferencePropertyField: removed conversion to str, which occured unicode encoding issues.
(ext.sqlalchemy - uses get_label, ext.django - works like our code)

Comments (0)

Files changed (1)

wtforms/ext/appengine/fields.py

 
         for obj in self.query:
             key = str(obj.key())
-            label = self.label_attr and getattr(obj, self.label_attr) or str(obj)
+            label = self.label_attr and getattr(obj, self.label_attr) or obj
             yield (key, label, key == self.data)
 
     def process_formdata(self, valuelist):