

def __init__(self, choices=(), widget_choices=(), widget=BitFieldCheckboxSelectMultiple, *args, **kwargs):
    initial = kwargs.get('initial')
    if isinstance(initial, int):
        l = []
        for i in range(0, 63):
            if (((1 << i) & choices) > 0):
                l += [choices[i][0]]
        kwargs['initial'] = l
    self.widget = widget
    super(BitFormField, self).__init__(*args, widget=widget, **kwargs)
    self.choices = choices
    self.widget.choices = (widget_choices or choices)

dataset/ETHPy150Open unlimitedlabs/orchestra/orchestra/accounts/bitformfield.py BitFormField.__init__/VarMisuse@75/89 `initial`->`choices`