Closed nav closed 7 years ago
I think it's better to apply the required encoding in your app side because you can control every arguments: https://github.com/mik3y/django-db-multitenant/blob/master/db_multitenant/cache/helper.py#L27
and it avoids costly or surprising results (if some characters are ignored).
I am getting
using
key.encode('ascii', 'ignore')
ordjango.utils.encoding.force_text
on the returned key fixes it.