Re: How-to use SelectMultiple widget with CommaSeparatedIntegerField ?

2009-08-11 Thread nono
I wrote a clean_csi() method and I call it in each clean_() method passing the field name and and it's working now Here is the code def clean_csi(self, field): data = self.cleaned_data[field] data.sort() csi_list = [] first_element = True for element

Re: How-to use SelectMultiple widget with CommaSeparatedIntegerField ?

2009-08-06 Thread Malcolm Tredinnick
On Thu, 2009-08-06 at 07:35 -0700, nono wrote: > I was reading my post and though it was not very clear > > My model uses CommaSeparatedIntegerField to store some integer values. > I want my users to use SelectMultiple widget to create/update those > integer so I put a ChoiceField with

Re: How-to use SelectMultiple widget with CommaSeparatedIntegerField ?

2009-08-06 Thread nono
I was reading my post and though it was not very clear My model uses CommaSeparatedIntegerField to store some integer values. I want my users to use SelectMultiple widget to create/update those integer so I put a ChoiceField with widget=SelectMultiple in my form. My problem is that all I can get

How-to use SelectMultiple widget with CommaSeparatedIntegerField ?

2009-08-06 Thread nono
Hi, my model uses CommaSeparatedIntegerField to store a list of integer. I want my users to use SelectMultiple widget to create/update this field so I put a ChoiceField with widget=SelectMultiple in my form. My problem is that all I can get from this is a list of values where I expect comma