[Fixed]-Django: Umlaut problems in admin page

1👍

Let’s say you have a simple model with title attribute. You have to encode that title to utf-8, something like this should work.

class MyModel(models.Model):
    title = models.CharField(max_length=255)

    def __str__(self):
        return self.title.encode('UTF-8')

    def __repr__(self)
        return self.title.encode('UTF-8')

Leave a comment