web/views/formrenderers.py
changeset 2521 782360fa6cc0
parent 2520 8c5cf48ae9ea
child 2550 4e009026a0f0
--- a/web/views/formrenderers.py	Mon Jul 27 18:41:29 2009 +0200
+++ b/web/views/formrenderers.py	Mon Jul 27 18:41:44 2009 +0200
@@ -85,6 +85,8 @@
         return '\n'.join(data)
 
     def render_label(self, form, field):
+        if field.label is None:
+            return u''
         label = self.req._(field.label)
         attrs = {'for': form.context[field]['id']}
         if field.required: