1👍
✅
You’ve defined a local variable called sel
inside your __init__
method, but that doesn’t have anything to do with the variable with the same name at global level that you used to populate the form. You’d actually have to replace the choices with your new values inside that method:
self.fields['source'].choices = sel
Source:stackexchange.com