django - Initial values for CheckboxSelectMultiple -
i'm initializing form using:
multisubscriptionform(initial={'email': user.email})
in form i'd initialize checkboxselectmultiple widget check set of checkboxes. how can that?
more or less same actually, pass list of values , works.
multisubscriptionform(initial={ 'email': user.email, 'multiple_field': ['a', 'b', 'c'], })
Comments
Post a Comment