marksweb / django-bleach

Bleach is a Python module that takes any HTML input, and returns valid, sanitised HTML that contains only an allowed subset of HTML tags, attributes and styles. django-bleach is a Django app that makes using bleach extremely easy.
MIT License
148 stars 23 forks source link

Fix for #23 #24

Closed marksweb closed 3 years ago

marksweb commented 3 years ago

Description

This fixes the issue of kwargs getting lost when forms.BleachField is used for a ModelForm field by default.

References

23

Checklist

codecov[bot] commented 3 years ago

Codecov Report

Merging #24 (949f209) into master (a4a295e) will increase coverage by 1.25%. The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           master       #24      +/-   ##
===========================================
+ Coverage   98.75%   100.00%   +1.25%     
===========================================
  Files           3         3              
  Lines          80        81       +1     
  Branches       16        16              
===========================================
+ Hits           79        81       +2     
+ Partials        1         0       -1     
Impacted Files Coverage Δ
models.py 100.00% <0.00%> (ø)
forms.py 100.00% <0.00%> (+2.17%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a4a295e...949f209. Read the comment docs.