Re: Error in form validation with choices

2010-06-13 Thread Rob
Thanks for starting this thread ... just hit this myself porting to 1.2.1 from 1.1.1 ... On May 18, 4:38 pm, Jori wrote: > Thanks, you're correct. I don't know how I didn't notice but then > again it worked just fine with 1.1.1. > > -Jori -- You received this message because you are subscribed

Re: Error in form validation with choices

2010-06-06 Thread Kieran Farr
I just ran into this as well. Very odd that earlier versions didn't raise the same error. On May 18, 1:38 pm, Jori wrote: > Thanks, you're correct. I don't know how I didn't notice but then > again it worked just fine with 1.1.1. > > -Jori > > On May 18, 11:03 pm, Daniel Roseman wrote: > > > >

Re: Error in form validation with choices

2010-05-18 Thread Jori
Thanks, you're correct. I don't know how I didn't notice but then again it worked just fine with 1.1.1. -Jori On May 18, 11:03 pm, Daniel Roseman wrote: > > It's an integer field, but the choices are all strings. The first > value in each tuple should be an integer, to match the field. > -- > DR

Re: Error in form validation with choices

2010-05-18 Thread Daniel Roseman
On May 18, 8:49 pm, Jori wrote: > Hi, > > I upgraded one of my projects to 1.2 today. I noticed that one of my > model forms won't validate anymore: > > class Review(Entry): >     RATING_VALUE_CHOICES = ( >         ('1', _('1. Overpriced')), >         ('2', _('2. Prices above average')), >        

Re: Error in form validation with choices

2010-05-18 Thread Jori
Uups, copypasted the wrong choices list. The format is the same so don't mind the variable name. On May 18, 10:49 pm, Jori wrote: > Hi, > > I upgraded one of my projects to 1.2 today. I noticed that one of my > model forms won't validate anymore: > > class Review(Entry): >     RATING_VALUE_CHOICE

Error in form validation with choices

2010-05-18 Thread Jori
Hi, I upgraded one of my projects to 1.2 today. I noticed that one of my model forms won't validate anymore: class Review(Entry): RATING_VALUE_CHOICES = ( ('1', _('1. Overpriced')), ('2', _('2. Prices above average')), ('3', _('3. Average price range')), ('4',