Skip to content

Commit

Permalink
Merge pull request #147 from frmdstryr/master
Browse files Browse the repository at this point in the history
fixed get_step_form() checking for instance when it should be checking for class
  • Loading branch information
sshwsfc committed Mar 20, 2014
2 parents 27c9187 + ed91574 commit 6facb97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xadmin/plugins/wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def get_step_form(self, step=None):
return callback(self)
elif hasattr(self.admin_view, str(callback)):
return getattr(self.admin_view, str(callback))(self)
elif isinstance(attrs, forms.BaseForm):
elif issubclass(attrs, forms.BaseForm):
return attrs
return None

Expand Down

0 comments on commit 6facb97

Please sign in to comment.