diff -r 71c143c0ada3 -r d6e6ad70e50a web/views/autoform.py --- a/web/views/autoform.py Wed May 13 16:59:50 2009 +0200 +++ b/web/views/autoform.py Wed May 13 17:00:08 2009 +0200 @@ -141,6 +141,8 @@ if kwargs is None: kwargs = {} if fieldcls: + if not isinstance(fieldcls, type): + return fieldcls # already and instance return fieldcls(name=name, role=role, eidparam=True, **kwargs) field = guess_field(eschema, rschema, role, eidparam=True, **kwargs) if field is None: