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 ('id' in fields):
        del fields['id']
    return DeclarativeFieldsMetaclass('WidgetParamsForm', (forms.Form,), fields)
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 ('id' in fields):
        del fields['id']
    return DeclarativeFieldsMetaclass('WidgetParamsForm', (forms.Form,), fields)