Skip to content

Commit

Permalink
fix: when STRIP_HTML_TAGS is active, None was rendered as 'None' inst…
Browse files Browse the repository at this point in the history
…ead of ''
  • Loading branch information
morlandi committed Jan 31, 2022
1 parent de71b61 commit 93187f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
History
=======

v4.4.1
------
* fix: when STRIP_HTML_TAGS is active, None was rendered as 'None' instead of ''

v4.4.0
------
* Prepare for Django 4.0
Expand Down
2 changes: 1 addition & 1 deletion ajax_datatable/columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def parse_choices(self, choices):
return choices_dict

def string_tags_in_case(self, value):
if STRIP_HTML_TAGS:
if STRIP_HTML_TAGS and value is not None:
return strip_tags(value)
return value

Expand Down

0 comments on commit 93187f9

Please sign in to comment.