Re: unique_together to bind three fields

2010-10-07 Thread meenakshi
Thanks for the great suggestions. In order to display the poll scores I would add the query in the results page template right? I apologiz for these newbie questions Meenakshi On Oct 7, 2:39 am, Tom Evans wrote: > On Thu, Oct 7, 2010 at 4:54 AM, meenakshi wrote: > > Hi, > >   I am new to Djan

Re: unique_together to bind three fields

2010-10-07 Thread Tom Evans
On Thu, Oct 7, 2010 at 4:54 AM, meenakshi wrote: > Hi, >   I am new to Django and Python and have been working through the > tutorial.  I would like to modify the polls app in the tutorial such > that I can track individual users who vote in a poll, keep a record of > their choice, and not allow a

Re: unique_together to bind three fields

2010-10-06 Thread Shawn Milochik
The answer is in the error: ManyToManyFields are not supported in unique_together. Instead, you can put custom validation in your form's save(), your ModelForm, or (in Django 1.2) in your model validation. -- You received this message because you are subscribed to the Google Groups "Django

unique_together to bind three fields

2010-10-06 Thread meenakshi
Hi, I am new to Django and Python and have been working through the tutorial. I would like to modify the polls app in the tutorial such that I can track individual users who vote in a poll, keep a record of their choice, and not allow any user to vote more than once in any given poll. Briefl