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 <jtla...@gmail.com> 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')),
>         ('3', _('3. Average price range')),
>         ('4', _('4. Inexpensive')),
>         ('5', _('5. Excellent value')),
>     )
>
>     communication = models.IntegerField(max_length=1,
> choices=RATING_COMMUNICATION_CHOICES, verbose_name =
> _('communication'), help_text=_('i.e. customer service, order
> confirmations'))
>     .......
>
> And yes this is a child model inheriting model Entry (plain multi-
> table inheritance). The Entry model has also one IntegerField with
> choices and it works just fine. My form is created using ModelForm
> without any custom stuff and this also gives error under admin ("Value
> 2 is not a valid choice.").
>
> Anyone else having the same problem?
>
> -Jori
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to