[Fixed]-UnicodeDecodeError after wrongly indenting def __unicode__(self): in models.py

1đź‘Ť

âś…

You should be returning a Unicode object not a string object.

Assuming self.recepient is a Unicode already, do:

return u"%s recieved a notification" % self.recipient

Note the u

Leave a comment