

def __init__(self, *args, **kwargs):
    request = kwargs.pop('request')
    workflow = kwargs.pop('workflow')
    self.workflow = request
    super(ParameterListSelectForm, self).__init__(*args, **kwargs)
    possible_lists = [('', '--Choose a Parameter List--')]
    possible_lists += get_possible_lists(request, workflow)
    preset_list_id = get_preset_list(request, workflow, id=True)
    self.fields['parameter_list'] = forms.ChoiceField(label='Parameter List', choices=possible_lists, initial=preset_list_id, widget=forms.Select(attrs={
        'class': 'form-control',
    }))
    self.fields['parameter_list'].empty_label = None

dataset/ETHPy150Open 3bot/3bot/threebot/forms.py ParameterListSelectForm.__init__/VarMisuse@38/44 `workflow`->`request`