fix so partial functions can be passed to field, solves issue #316

This commit is contained in:
Jim van Eeden 2016-12-02 15:35:43 +01:00
parent da3683028e
commit 774e9bf463

View File

@ -60,7 +60,7 @@ class Field(OrderedType):
@property
def type(self):
if inspect.isfunction(self._type):
if inspect.isfunction(self._type) or type(self._type) is partial:
return self._type()
return self._type