Closed OlegGirko closed 7 years ago
CharField's behaviour changed in Django 1.9: now field's value is stripped off leading and trailing whitespaces by default.
CharField
To prevent this, additional strip=False parameter is needed, but only if Django version is >= 1.9.
strip=False
Tested with Django 1.9 and Django 1.9.
OK, tests fail for this pull request because of new markups module. Closing it and sending pull request with combined fixes for new Django and markups #129.
markups
Django
CharField
's behaviour changed in Django 1.9: now field's value is stripped off leading and trailing whitespaces by default.To prevent this, additional
strip=False
parameter is needed, but only if Django version is >= 1.9.Tested with Django 1.9 and Django 1.9.