Skip to content

Commit

Permalink
fixed get_step_form() checking for instance when it should be checking
Browse files Browse the repository at this point in the history
for a class
  • Loading branch information
Jairus Martin committed Mar 19, 2014
1 parent 7750e82 commit ed91574
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 ed91574

Please sign in to comment.