Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Form field kwargs get ignored  #23

@marksweb

Description

@marksweb

Describe the bug
If you definekwargs for a form field, models.BleachField.formfield doesn't always pass on those kwargs.

To Reproduce
Set a custom widget for a BleachField with no choices defined

Expected behavior
The kwargs should be updated, not overridden so that anything set outside of django-bleach isn't ignored & lost.

Screenshots
You can see here, a widget is passed in through kwargs but then kwargs aren't used in the returned field.

Screenshot 2021-07-27 at 11 11 58

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions