You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deleting tag from admin causes DjangoUnicodeDecodeError : 'ascii' codec can't decode byte 0xc4 in position 5: ordinal not in range(128). You passed in <TaggedItem: [Bad Unicode data]> (<class 'taggit.models.TaggedItem'>)
Changing 36 line of taggit/models.py from:
return "%s tagged with %s" % (self.content_object, self.tag)
to:
return u"%s tagged with %s" % (self.content_object, self.tag)
solves this error.
The text was updated successfully, but these errors were encountered:
Hrm, I'm used to seeing those exceptions on older pythons where strings aren't upcast to unicode on certain operations. I guess this issue is slightly different.
Deleting tag from admin causes DjangoUnicodeDecodeError : 'ascii' codec can't decode byte 0xc4 in position 5: ordinal not in range(128). You passed in <TaggedItem: [Bad Unicode data]> (<class 'taggit.models.TaggedItem'>)
Changing 36 line of taggit/models.py from:
return "%s tagged with %s" % (self.content_object, self.tag)
to:
return u"%s tagged with %s" % (self.content_object, self.tag)
solves this error.
The text was updated successfully, but these errors were encountered: