[Answer]-Django model forms encoding

1👍

Set file encoding to UTF-8 by writing the following at the top of the file.

# coding=utf8

Then add a lower case u before the string.

verbose_name=u'Imię'

More info about encodings in Python in PEP 263.

0👍

You forgot to use a unicode.

    imie = models.CharField(verbose_name=u'Imię', max_length=40)

Leave a comment