Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeEncodeError when delete all speakers #515

Open
johnfelipe opened this issue Apr 6, 2016 · 3 comments
Open

UnicodeEncodeError when delete all speakers #515

johnfelipe opened this issue Apr 6, 2016 · 3 comments

Comments

@johnfelipe
Copy link

UnicodeEncodeError at /admin/speeches/speaker/
'ascii' codec can't encode character u'\xf1' in position 77: ordinal not in range(128)
Request Method: POST
Request URL:    http://45.55.47.200:8000/admin/speeches/speaker/
Django Version: 1.8.12
Exception Type: UnicodeEncodeError
Exception Value:    
'ascii' codec can't encode character u'\xf1' in position 77: ordinal not in range(128)
Exception Location: /home/felipe/sayit/virtualenv-sayit/local/lib/python2.7/site-packages/popolo/models.py in __str__, line 340
Python Executable:  /home/felipe/sayit/virtualenv-sayit/bin/python
Python Version: 2.7.6
Python Path:    
['/home/felipe/sayit/sayit',
 '/home/felipe/sayit/virtualenv-sayit/lib/python2.7',
 '/home/felipe/sayit/virtualenv-sayit/lib/python2.7/plat-x86_64-linux-gnu',
 '/home/felipe/sayit/virtualenv-sayit/lib/python2.7/lib-tk',
 '/home/felipe/sayit/virtualenv-sayit/lib/python2.7/lib-old',
 '/home/felipe/sayit/virtualenv-sayit/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/home/felipe/sayit/virtualenv-sayit/local/lib/python2.7/site-packages']
Server time:    Mié, 6 Apr 2016 18:53:28 +0100
@dracos
Copy link
Member

dracos commented Apr 7, 2016

This is a bug in the popolo package we use, I have proposed a fix to them at openpolis/django-popolo#29

@dracos
Copy link
Member

dracos commented Apr 7, 2016

You could delete from the database shell instead in the meantime.

@johnfelipe
Copy link
Author

how is exact command for delete all instance, no database

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants