Re: Difficulty validating ModelMultipleChoiceField

2007-07-06 Thread danylo
Problem solved thanks to Adrian. Added: from django.utils.datastructures import MultiValueDict and I added the following to the SortedCheckBox widget: def value_from_datadict(self, data, name): if isinstance(data, MultiValueDict): return data.getlist(name) return

Difficulty validating ModelMultipleChoiceField

2007-07-05 Thread danylo
I can't get a form to validate and for the life of me, can't figure out why. I keep getting an error on the topics. Regardless of how many I choose, it returns an "Enter a list of values." error. It looks like even though the form returns a list of topics, it doesn't send the list to the valid