web/formfields.py
branchstable
changeset 9278 a7894d5f00bb
parent 9213 312062f53981
child 9283 5f2c5eb1a820
--- a/web/formfields.py	Thu Oct 10 12:42:10 2013 +0200
+++ b/web/formfields.py	Tue Oct 01 12:11:00 2013 +0200
@@ -564,7 +564,7 @@
             widget.attrs.setdefault('maxlength', self.max_length)
 
     def init_text_area(self, widget):
-        if self.max_length < 513:
+        if self.max_length and self.max_length < 513:
             widget.attrs.setdefault('cols', 60)
             widget.attrs.setdefault('rows', 5)