#11710: construct_change_message() with unicode verbose_name fix
-------------------------------------------+--------------------------------
Reporter: Rupe | Owner: nobody
Status: new | Milestone:
Component: django.contrib.admin | Version: SVN
Resolution: | Keywords:
construct_change_message exception ascii unicode
Stage: Unreviewed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Changes (by Rupe):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
Here is the error I was receiving.
{{{
Environment:
Request Method: POST
Request URL: http://localhost:8000/admin/matriz/matriz/1001/
Django Version: 1.1
Python Version: 2.5.4
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.admin',
'django.contrib.admindocs',
'adminTributaria.farramentas',
'adminTributaria.pessoa',
'adminTributaria.matriz']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware')
Traceback:
File "C:\Python25\Lib\site-packages\django\core\handlers\base.py" in
get_response
92. response = callback(request, *callback_args,
**callback_kwargs)
File "C:\Python25\lib\site-packages\django\contrib\admin\options.py" in
wrapper
226. return self.admin_site.admin_view(view)(*args,
**kwargs)
File "C:\Python25\Lib\site-packages\django\views\decorators\cache.py" in
_wrapped_view_func
44. response = view_func(request, *args, **kwargs)
File "C:\Python25\Lib\site-packages\django\contrib\admin\sites.py" in
inner
186. return view(request, *args, **kwargs)
File "C:\Python25\Lib\site-packages\django\db\transaction.py" in
_commit_on_success
240. res = func(*args, **kw)
File "C:\Python25\lib\site-packages\django\contrib\admin\options.py" in
change_view
850. change_message =
self.construct_change_message(request, form, formsets)
File "C:\Python25\lib\site-packages\django\contrib\admin\options.py" in
construct_change_message
526. 'object':
force_unicode(added_object)})
Exception Type: UnicodeDecodeError at /admin/matriz/matriz/1001/
Exception Value: 'ascii' codec can't decode byte 0xc3 in position 18:
ordinal not in range(128)
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/11710#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---