Removed error, FileInput defined as function not class

This commit is contained in:
James O'Toole
2015-02-17 11:46:58 +00:00
parent 1378b29a2c
commit b77c2c40a8
+2 -1
View File
@@ -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