Tag Archives: unicode

Django admin UnicodeEncodeError

Don’t we all get confused by unicode encoding sometimes? Especially you wouldn’t expect this kind of error to happen in django admin. The problem is actually not in the admin section, the culprit is __unicode__ method in your model. when you have a unicode function like this: def __unicode__(self): return “{0}”.format(self.field_one) It is actually returning… Read More »