Skip to content

Commit

Permalink
Merge pull request #20 from aodag/master
Browse files Browse the repository at this point in the history
fix for #18
  • Loading branch information
gawel committed Feb 1, 2012
2 parents d352bf7 + b4397f4 commit ca9091a
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 ca9091a

Please sign in to comment.