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 SVN-9814
Python Version: 2.5.1
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.comments',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'mysite.polls']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware')


Traceback:
File "/Library/Python/2.5/site-packages/django/core/handlers/base.py"
in get_response
  86.                 response = callback(request, *callback_args,
**callback_kwargs)
File "/Users/seamus/Sources/django/mysite/../mysite/polls/views.py" in
vote
  18.           selected_song_set.points = points

Exception Type: NameError at /polls/1/vote/
Exception Value: global name 'points' is not defined

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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