From 5f04ac9cb4d49b67aa71982b5bdc6fbef7d65885 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 31 Oct 2017 13:25:19 -0700 Subject: [PATCH] Add "text" type for new form fields --- tailbone/forms2/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tailbone/forms2/core.py b/tailbone/forms2/core.py index 5d7148c2..06183d4c 100644 --- a/tailbone/forms2/core.py +++ b/tailbone/forms2/core.py @@ -323,6 +323,8 @@ class Form(object): elif type_ == 'codeblock': self.set_renderer(key, self.render_codeblock) self.set_widget(key, dfwidget.TextAreaWidget(cols=80, rows=8)) + elif type_ == 'text': + self.set_widget(key, dfwidget.TextAreaWidget(cols=80, rows=8)) else: raise ValueError("unknown type for '{}' field: {}".format(key, type_))