I am trying to create a MultipleChoiceField form field that contains dynamic choices. I would like to preselect a (dynamic) set of these while the rest should remain unchecked. Is there some way to do this?
widget=forms.CheckboxSelectMultiple(attrs={'checked': 'checked'})
Will cause all choices to be checked, however i only need some to be checked.
Help would be greatly appreciated