From b77c2c40a81833655a726a4850d3cf1aea50c76f Mon Sep 17 00:00:00 2001 From: James O'Toole Date: Tue, 17 Feb 2015 11:46:58 +0000 Subject: [PATCH] Removed error, FileInput defined as function not class --- wtformsparsleyjs/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wtformsparsleyjs/core.py b/wtformsparsleyjs/core.py index 4da8012..af08483 100644 --- a/wtformsparsleyjs/core.py +++ b/wtformsparsleyjs/core.py @@ -181,6 +181,7 @@ def _integer_kwargs(kwargs): def _number_kwargs(kwargs): kwargs[u'data-parsley-type'] = "number" + class ParsleyInputMixin(Input): def __call__(self, field, **kwargs): kwargs = parsley_kwargs(field, kwargs) @@ -226,7 +227,7 @@ class ListWidget(_ListWidget): return super(ListWidget, self).__call__(field, **kwargs) -def FileInput(_FileInput, ParsleyInputMixin): +class FileInput(_FileInput, ParsleyInputMixin): pass