Skip to content

Commit ed91574

Browse files
author
Jairus Martin
committed
fixed get_step_form() checking for instance when it should be checking
for a class
1 parent 7750e82 commit ed91574

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xadmin/plugins/wizard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def get_step_form(self, step=None):
122122
return callback(self)
123123
elif hasattr(self.admin_view, str(callback)):
124124
return getattr(self.admin_view, str(callback))(self)
125-
elif isinstance(attrs, forms.BaseForm):
125+
elif issubclass(attrs, forms.BaseForm):
126126
return attrs
127127
return None
128128

0 commit comments

Comments
 (0)