web/views/formrenderers.py
changeset 2144 51c84d585456
parent 2103 41840b1a2a1a
parent 2093 e3aaf61f8c66
child 2181 94ca417b9b07
--- a/web/views/formrenderers.py	Tue Jun 23 13:31:35 2009 +0200
+++ b/web/views/formrenderers.py	Tue Jun 23 13:36:38 2009 +0200
@@ -94,6 +94,8 @@
     def render_help(self, form, field):
         help = []
         descr = field.help
+        if callable(descr):
+            descr = descr(form)
         if descr:
             help.append('<div class="helper">%s</div>' % self.req._(descr))
         example = field.example_format(self.req)