On 4/21/07, mateo <[EMAIL PROTECTED]> wrote: > > List, > > When following the tutorial I get the below error when attempting a > save from the admin console. I'm new to Django and certainly not a > guru of any sort so I thought I would ask about it here first before > posting a bug report. I am using the latest SVN release as of 4/21. > Any ideas what might be going on? > > Traceback (most recent call last): > File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" > in get_response > 77. response = callback(request, *callback_args, **callback_kwargs) > File "/usr/lib/python2.5/site-packages/django/contrib/admin/views/ > decorators.py" in _checklogin > 55. return view_func(request, *args, **kwargs) > File "/usr/lib/python2.5/site-packages/django/views/decorators/ > cache.py" in _wrapped_view_func > 39. response = view_func(request, *args, **kwargs) > File "/usr/lib/python2.5/site-packages/django/contrib/admin/views/ > main.py" in change_stage > 329. new_object = manipulator.save(new_data) > File "/usr/lib/python2.5/site-packages/django/db/models/ > manipulators.py" in save > 191. param = f.get_manipulator_new_data(rel_new_data, rel=True) > File "/usr/lib/python2.5/site-packages/django/db/models/fields/ > __init__.py" in get_manipulator_new_data > 289. return new_data.get(self.name, [self.get_default()])[0] > > TypeError at /admin/polls/poll/1/ > 'int' object is unsubscriptable > >
What stage of the tutorial, exactly, did this error occur at? Could you also please copy and paste the contents of your models.py file with your response? Jay P. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---