у меня другого выбора нету
пытался через инит но не вышло
пример
class SomeForm(forms.Form):
type = forms.ChoiceField()
def __init__(self, choices, *args, **kwargs):
super(SomeForm, self).__init__(*args, **kwargs)
self.fields["type"].choices = choices
В этоге:
Exception Type: KeyError
Exception Value: 'type'
в строке self.fields["type"].choices = choices
Где ошибка? вроде все правельно