1👍
✅
Try to convert the user
instance to Unicode like this:
smart_str(unicode(t.user), encoding=encoding)
Hope this works!
Source:stackexchange.com