Skip to content

Commit

Permalink
0.7.0 Release prep and testing against 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
marksweb committed Jul 9, 2021
1 parent 0dfcd6d commit 8c80739
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Version 0.7.0
=============
###### 09-07-2021
* Default form field set to `forms.BleachField` for `models.BleachField` (Thanks [Alirezaja1384](https://github.com/Alirezaja1384))
* Introduced testing against Python 3.9

Version 0.6.1
=============
###### 07-11-2019
Expand Down
2 changes: 1 addition & 1 deletion django_bleach/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__author__ = "Tim Heap & Mark Walker"
__version__ = "0.6.1"
__version__ = "0.7.0"

VERSION = __version__.split(".")
4 changes: 1 addition & 3 deletions django_bleach/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ def __init__(self, allowed_tags=None, allowed_attributes=None,
self.bleach_kwargs["strip_comments"] = strip_comments

def formfield(self, **kwargs):
"""
Makes field for ModelForm
"""
""" Makes the field for a ModelForm """

# If field doesn't have any choice return BleachField
if not self.choices:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
{py36,py37,py38}-django{22,31,32},
{py36,py37,py38,p39}-django{22,31,32},
flake8,
docs,
coverage,
Expand Down

0 comments on commit 8c80739

Please sign in to comment.