branch | stable |
changeset 1861 | 21fae1546ac4 |
parent 1860 | ce67132ced1c |
child 1935 | a54a3b665361 |
child 1947 | 8696403e5324 |
--- a/web/form.py Tue May 19 11:01:42 2009 +0200 +++ b/web/form.py Tue May 19 11:18:05 2009 +0200 @@ -381,9 +381,10 @@ myattr = '%s_%s_default' % (field.role, field.name) if hasattr(self, myattr): return getattr(self, myattr)() + value = field.initial if callable(value): value = value(self) - return field.initial + return value def form_field_error(self, field): """return validation error for widget's field, if any"""