On Jun 26, 3:39 pm, Karen Tracey <kmtra...@gmail.com> wrote:
> On Sat, Jun 26, 2010 at 3:48 AM, derek <gamesb...@gmail.com> wrote:
> >   Caught TypeError while rendering: coercing to Unicode: need string
> > or buffer, NoneType found
>
> The typical reason for this message is a __unicode__ method for a model that
> is not returning unicode. The traceback would help to reveal whether that is
> what is going on in this case or if it is something else.
>
Sorry, I had thought the traceback I included above would be
sufficient.  I have since copied over the relevant UserProfile code,
and a copy of the table that stores the data,  to a minimal test app
and was again able to reproduce the error.  Here is the full
traceback:


Environment:

Request Method: POST
Request URL: http://127.0.0.1:8000/admin/auth/user/1/
Django Version: 1.2.1
Python Version: 2.6.5
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.admin',
 'vehicles.cars']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware')


Traceback:
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/
base.py" in get_response
  100.                     response = callback(request,
*callback_args, **callback_kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/admin/
options.py" in wrapper
  239.                 return self.admin_site.admin_view(view)(*args,
**kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/utils/
decorators.py" in _wrapped_view
  76.                     response = view_func(request, *args,
**kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/views/decorators/
cache.py" in _wrapped_view_func
  69.         response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/admin/
sites.py" in inner
  190.             return view(request, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/utils/
decorators.py" in _wrapper
  21.             return decorator(bound_func)(*args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/utils/
decorators.py" in _wrapped_view
  76.                     response = view_func(request, *args,
**kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/utils/
decorators.py" in bound_func
  17.                 return func(self, *args2, **kwargs2)
File "/usr/local/lib/python2.6/dist-packages/django/db/transaction.py"
in _commit_on_success
  299.                     res = func(*args, **kw)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/admin/
options.py" in change_view
  900.                 change_message =
self.construct_change_message(request, form, formsets)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/admin/
options.py" in construct_change_message
  566.                                              'object':
force_unicode(added_object)})
File "/usr/local/lib/python2.6/dist-packages/django/utils/encoding.py"
in force_unicode
  66.                 s = unicode(s)

Exception Type: TypeError at /admin/auth/user/1/
Exception Value: coercing to Unicode: need string or buffer, NoneType
found

-- 
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