1👍
✅
You can do something like this:
split_range = self.instance.ip_range.split(' ') #Or whatever your delimiter is
ip_list_choices = zip(split_range, split_range) #Gives you a tuple.
self.fields['ip_list'] = forms.ChoiceField(choices=ip_list_choices)
Source:stackexchange.com