Closed marksweb closed 3 years ago
Describe the bug If you definekwargs for a form field, models.BleachField.formfield doesn't always pass on those kwargs.
kwargs
models.BleachField.formfield
To Reproduce Set a custom widget for a BleachField with no choices defined
BleachField
Expected behavior The kwargs should be updated, not overridden so that anything set outside of django-bleach isn't ignored & lost.
django-bleach
Screenshots You can see here, a widget is passed in through kwargs but then kwargs aren't used in the returned field.
Describe the bug If you define
kwargs
for a form field,models.BleachField.formfield
doesn't always pass on thosekwargs
.To Reproduce Set a custom widget for a
BleachField
with no choices definedExpected behavior The
kwargs
should be updated, not overridden so that anything set outside ofdjango-bleach
isn't ignored & lost.Screenshots You can see here, a widget is passed in through
kwargs
but thenkwargs
aren't used in the returned field.