Re: updated poll example to take points for each item, gives more than 1 to upack err

2009-02-26 Thread Daniel Roseman
On Feb 26, 7:10 pm, seamusjr wrote: > > But what is points? Where is it coming from? As the traceback shows > > you, you haven't set the points variable anywhere. Where are you > > expecting it to come from? > > -- > > DR. > > I want to iterate thru the points property of the Song object, from >

Re: updated poll example to take points for each item, gives more than 1 to upack err

2009-02-26 Thread seamusjr
> But what is points? Where is it coming from? As the traceback shows > you, you haven't set the points variable anywhere. Where are you > expecting it to come from? > -- > DR. I want to iterate thru the points property of the Song object, from models.py, how can I output that from the views to

Re: updated poll example to take points for each item, gives more than 1 to upack err

2009-02-26 Thread seamusjr
> But what is points? Where is it coming from? As the traceback shows > you, you haven't set the points variable anywhere. Where are you > expecting it to come from? > -- > DR. I want to iterate thru the points property of the Song object, from models.py, how can I output that from the views to

Re: updated poll example to take points for each item, gives more than 1 to upack err

2009-02-26 Thread seamusjr
> But what is points? Where is it coming from? As the traceback shows > you, you haven't set the points variable anywhere. Where are you > expecting it to come from? > -- > DR. I want to iterate thru the points property of the Song object, from models.py, how can I output that from the views to

Re: updated poll example to take points for each item, gives more than 1 to upack err

2009-02-26 Thread Daniel Roseman
On Feb 26, 5:10 pm, seamusjr wrote: > Ok, I got rid of the pointx variables, replaced them with the > following and restarted the server. > > selected_song_set.points = points > selected_song_set.save() > > Here is the traceback: > > Environment: > > Request Method: POST > Request URL:http://127.

Re: updated poll example to take points for each item, gives more than 1 to upack err

2009-02-26 Thread seamusjr
Ok, I got rid of the pointx variables, replaced them with the following and restarted the server. selected_song_set.points = points selected_song_set.save() Here is the traceback: Environment: Request Method: POST Request URL: http://127.0.0.1:8000/polls/1/vote/ Django Version: 1.1 pre-alpha S

Re: updated poll example to take points for each item, gives more than 1 to upack err

2009-02-26 Thread Daniel Roseman
On Feb 26, 3:41 am, seamusjr wrote: > I am trying to modify the polls example from djangoproject.com to take > a integer point value for each of the 1 thru 5 poll items instead of > having a radio button where u select one.  However, I am having > problems with the views.py syntax.  I changed the

updated poll example to take points for each item, gives more than 1 to upack err

2009-02-25 Thread seamusjr
I am trying to modify the polls example from djangoproject.com to take a integer point value for each of the 1 thru 5 poll items instead of having a radio button where u select one. However, I am having problems with the views.py syntax. I changed the Choice obejct to be a Song object and change