Django Crispy forms Validators

Viewed 17

I have Django and I use crispy forms to enter data about a user. Problem is, some new users have 'diacritic' symbols in their name. Then I get the following error:

Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.

For example: 'Coric' is ok, but 'Čorić' gets the error. I can manualy write it into the database, so I think that the problem is with crispy forms. How can I include 'š/č/ć/ž' simbols in the input form?

0 Answers
Related