Re: Custom CheckboxSelectMultiple Widget that holds state

2010-08-10 Thread wayne
Well, IMO any way that works and you feel comfortable supporting is "okay". I can tell you what I did, but I don't know if it's any better. If I understand you correctly, you want to bring up the options a user made previously and start from there instead of a blank slate. What I did to accompli

Custom CheckboxSelectMultiple Widget that holds state

2010-08-10 Thread vcarney
I've got a form with a multi checkbox that contains static choices. Using the forms.MultipleChoiceField with the CheckboxSelectMultiple widget worked fine for display. However, when displaying an edit form, the checkboxes did not hold state (all items were unchecked). To handle this I created a cus