Skip to content

Commit

Permalink
fix for FormAlchemy#18
Browse files Browse the repository at this point in the history
  • Loading branch information
aodag committed Jan 15, 2012
1 parent d352bf7 commit b4397f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyramid_formalchemy/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def get_fieldset(self, suffix='', id=None):
if fs is None:
fs = getattr(request.forms, request.model_name,
self.fieldset_class)
if fs is self.fieldset_class:
if isinstance(fs, type) and issubclass(fs, self.fieldset_class):
fs = fs(request.model_class)
if not isinstance(request.forms, list):
# add default fieldset to form module eg: caching
Expand Down

0 comments on commit b4397f4

Please sign in to comment.