mgaitan / waliki

A wiki engine powered by Django and Git
http://waliki.pythonanywhere.com
BSD 3-Clause "New" or "Revised" License
309 stars 56 forks source link

Don't strip PageForm's raw field in Django 1.9. #128

Closed OlegGirko closed 7 years ago

OlegGirko commented 7 years ago

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.

OlegGirko commented 7 years ago

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.