def get_widget_params_form(self, wizard):
        data = wizard.get_cleaned_data_for_step(wizard.steps.first)
        widget_type = data['widget_type']
        widget = widget_manager.get(widget_type)
        fields = copy.deepcopy(widget.base_fields)
        if fields in 'id':
            del fields['id']
        return DeclarativeFieldsMetaclass("WidgetParamsForm", (forms.Form,), fields)
dataset/ETHPy150Open sshwsfc/xadmin/xadmin/views/dashboard.py/UserWidgetAdmin.get_widget_params_form/swapped operands of `in`