Op 2014-09-18T13:41:53 UTC schreef Jaap van Wingerde
<mailingli...@vanwingerde.nl> in het bericht <unicode problems in admin
interface>, ID: <20140918134153.390fc...@jaap.custard.shrl.nl> het
interface>volgende. 

> I have suddenly unicode problems with de admin interface:
> 
> "DjangoUnicodeDecodeError at /admin/art/photographextra/
> 
> 'ascii' codec can't decode byte 0xc3 in position 32: ordinal not in
> range(128). You passed in <exposition: [Bad Unicode data]> (<class
> 'art.models.exposition'>)
> ...
> Unicode error hint
> 
> The string that could not be encoded/decoded was: l>Mus��e du"
> 
> The site itself is behaving well:
> <http://glaskunst.liakoster.nl/expositie/medium-verre-21/>.
> 
> settings.py:
> "...
> INSTALLED_APPS = (
>     'django.contrib.auth',
>     'django.contrib.contenttypes',
>     'django.contrib.sessions',
>     'django.contrib.sites',
>     'django.contrib.messages',
>     'django.contrib.staticfiles',
>     'grappelli.dashboard',
>     'grappelli',
>   # Uncomment the next line to enable the admin:
>     'django.contrib.admin',
>     # Uncomment the next line to enable admin documentation:
>     'django.contrib.admindocs',
>     'art',
>     'rosetta',
>     'dbgettext',
> )
> ...
> DEFAULT_CHARSET='utf-8'
> FILE_CHARSET='utf-8'
> DEFAULT_CONTENT_TYPE='text/html'
> ..."
> 
> "jaap@liakoster:/var/django/liakoster.nl/test2$ python -c "import
> django; print(django.get_version())" 1.7
> jaap@liakoster:/var/django/liakoster.nl/test2$ python -V
> Python 2.7.3
> jaap@liakoster:/var/django/liakoster.nl/test2$"
> 
> 
> 
> What is going on?

I found a way around by removing 'artobjects' from list_filter:
"#    list_filter = 
('expositions','galleries','creators','objectseries','artobjects',)
list_filter = ('expositions','galleries','creators','objectseries',)"

This problem is like the following bugs:
<https://github.com/darklow/django-suit/pull/162> and
<https://github.com/darklow/django-suit/issues/46>. However, I do not
use django-suite.


-- 

Jaap van Wingerde
e-mail: 1234567...@vanwingerde.nl

Attachment: signature.asc
Description: PGP signature

Reply via email to