FormAlchemy / pyramid_formalchemy

44 stars 14 forks source link

Custom Form is not instanciated. #18

Open aodag opened 12 years ago

aodag commented 12 years ago

I declare custom form UserAdd for User class. But, I got below error.

  File "C:\Users\aodag\Documents\works\rebecca\lib\site-packages\pyramid_formalchemy\views.py", line 251, in get_fieldset
    fs = id and fs.bind(model) or fs.copy()
TypeError: unbound method copy() must be called with UserAdd instance as first argument (got nothing instead)

maybe fs is UserAdd class. I expect fs is UserAdd instance.