summaryrefslogtreecommitdiffstats
path: root/utils/forms.py
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2016-01-12 03:16:01 +0100
committerAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2016-01-12 04:05:49 +0100
commit4d81829ff47208ffe19eb3bd2d472a5344844374 (patch)
tree9433dcdd30599c1dd286671060aa7db1dfb07dab /utils/forms.py
parentb275ac6f8a0589f5a3f0b93a74b7307ff3a996c2 (diff)
downloadpadlite-teams-4d81829ff47208ffe19eb3bd2d472a5344844374.tar.gz
padlite-teams-4d81829ff47208ffe19eb3bd2d472a5344844374.tar.bz2
padlite-teams-4d81829ff47208ffe19eb3bd2d472a5344844374.zip
forms: Fix customization of input fields
The sqlalchemy extension of wtforms does not allow to customize the generated field for specific columns, but only the generated widget.
Diffstat (limited to 'utils/forms.py')
-rw-r--r--utils/forms.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/utils/forms.py b/utils/forms.py
index 59afe61..01120d0 100644
--- a/utils/forms.py
+++ b/utils/forms.py
@@ -19,13 +19,6 @@ class Unique(object):
raise ValidationError(self.message)
-class ReadonlyField(Field):
- widget = Static()
-
- def process_formdata(self, _):
- pass
-
-
class RedirectMixin(object):
next = HiddenField()