

def __init__(self, user, *args, **kwargs):
    object_types = kwargs.pop('object_types')
    object_names = kwargs.pop('object_names')
    x = ((object_types[i], object_names[i]) for i in range(0, len(object_types)))
    super(ObjChoiceForm, self).__init__(*args, **kwargs)
    self.fields['choice'] = forms.ChoiceField(label=_('Choose an Object to Report on'), choices=x)

dataset/ETHPy150Open treeio/treeio/treeio/reports/forms.py ObjChoiceForm.__init__/original