onepill / django-simplemde

Use markdown editor https://github.com/sparksuite/simplemde-markdown-editor in django project
32 stars 15 forks source link

Fix django 4 import force_text error #22

Closed AlexCLeduc closed 2 years ago

AlexCLeduc commented 2 years ago

django.utils.encoding.force_text was deprecated in django 3 and removed in django 4, breaking this library. Fortunately force_str has identical behaviour so this is an easy fix.