This document records all notable changes to django-bleach. This project adheres to Semantic Versioning.
unreleased changes
05-08-2023
- Added support for django 4.2
- Added support for python 3.12
- Revamp package for easier maintenance
11-10-2022
- Added support for django 4.1
19-05-2022
- Bleach dependency is now at
>=5,<6
#55 (Thanks Laityned) - Deprecate bleach's
allowed_styles
kwarg - Added support for bleach's
css_sanitizer
kwarg - Add isort and codespell to ci
- Dropped support for python 3.6 and 3.7 as well as django 3.0 and 3.1
- Renamed default branch from
master
tomain
. If you have the project locally, you can update using:
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
- cap bleach version at
<5
#51 - drop support for python 3.6
- drop support for django 3.0 and 3.1
- added support for django 4
Going to 1.0 is long overdue, especially considering SemVer.
- automated pypi releases via github actions
- pre-commit hooks
- python 3.10 support
- docs syntax highlighting #38
- Drop support for django <2.2
- Added support for django 4.0
Thank you to Mark Gregson for providing the changes in this release!
- Fix for #28: Return
empty_value
for any empty input value - Fix for #27: Mark cleaned data as template safe
- Fix for #25: Respect the
form_class
argument - Fix custom widget tests #34
- Fix for #23:
kwargs
being lost in the default form field.
- Fix for #21: default form field not respecting required fields.
- Default form field set to
forms.BleachField
formodels.BleachField
(Thanks Alirezaja1384) - Introduced testing against Python 3.9
- Handle
None
as an input value of template tags (Thanks pegler)
- Introduced testing against Python 3.8
- Drop support for Django <1.11
- Test coverage at 100%
- Fix for
BleachField
set to allowblank
ornull
. (Thanks denisroldan)
- Fix for
BleachField
receiving aNone
value. (Thanks MrkGrgsn)
- 100% coverage achieved
- Changelog updated with
0.5.0
changes. (Thanks dyve)
- Added support for bleach's
allowed_protocols
kwarg. (Thanks blag) - Bleach dependency is now
>=1.5.0
- Option to pass allowed tags to the
bleach
template filter added by Rafał Selewońko. - Moved project to Github.
- Added support for django>=1.9
- Ensure that the
model_instance
field gets updated with the clean value
- The
BleachField
model field now does its own sanitisation, and does not specify a default form field or widget. Developers are expected to provide their own widget as needed.
- Make the package python3 compatible.
- Add
bleach_linkify
template filter from whitehat2k13
- Add missing
templatetags
package, by usingfind_packages()
- Correct templatetag name:
bleach.py
->bleach_tags.py
- Fix south migration bug
- add south_triple_field for south integration
- clean up files to meet pep8 compliance
- Initial release