Opened 11 years ago

Closed 11 years ago

#20727 closed Bug (invalid)

cyrillic in django-admin

Reported by: anonymous Owned by: nobody
Component: Uncategorized Version: 1.5
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hello,

When I add Cyrillic strings into django-admin I alway get an error
Warning at /admin/table/data/1/

Incorrect string value: '\xD0\xA4\xD0\xB8\xD1\x80...' for column 'object_repr' at row 1

Request Method: POST
Request URL: http://localhost:8000/admin/table/data/1/
Django Version: 1.5.1
Exception Type: Warning
Exception Value:

Incorrect string value: '\xD0\xA4\xD0\xB8\xD1\x80...' for column 'object_repr' at row 1

Exception Location: /usr/lib/python2.7/dist-packages/MySQLdb/cursors.py in _warning_check, line 92
Python Executable: /usr/bin/python
Python Version: 2.7.3
Python Path:

['/home/tmacbg/Web/polycontact',

'/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg',
'/usr/local/lib/python2.7/dist-packages/Django-1.5.1-py2.7.egg',
'/usr/local/lib/python2.7/dist-packages/django_grappelli-2.4.5-py2.7.egg',
'/usr/local/lib/python2.7/dist-packages/Unidecode-0.04.13-py2.7.egg',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PIL',
'/usr/lib/python2.7/dist-packages/gst-0.10',
'/usr/lib/python2.7/dist-packages/gtk-2.0',
'/usr/lib/pymodules/python2.7']

Server time: Ср, 10 Юли 2013 16:53:09 +0300
How can I enter cyrillic strings ?!

Thank you and have a nice day

Change History (1)

comment:1 by Aymeric Augustin, 11 years ago

Resolution: invalid
Status: newclosed

This isn't a bug in Django; your object_repr method doesn't deal with unicode correctly. Please see TicketClosingReasons/UseSupportChannels.

Note: See TracTickets for help on using tickets.
Back to Top