Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move class to widget #275

Merged
merged 3 commits into from
Sep 29, 2023

Conversation

rgs258
Copy link
Contributor

@rgs258 rgs258 commented May 12, 2022

Replaces #208

The bootstrap_form tag in the popular django-bootstrap4 package will add a form-control class to the div of a form field. With a hard coded class in the templates, this results in two class attributes which is not allowed.

This change moves the class to the widget. This allows the widget to do all the class inserting and avoid creating duplicate class attributes on the div.

rgs258 and others added 3 commits May 15, 2020 12:47
…add a form-control class to the div of a form field. With a hard coded class in the templates, this results in two class attributes which is not allowed.

This change moves the class to the widget. This allows the widget to do all the class inserting and avoid creating duplicate class attributes on the div.
@rgs258 rgs258 added status: needs review enhancement New feature or request labels May 13, 2022
Copy link
Contributor

@Stormheg Stormheg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @rgs258

Sorry that it took so long to review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants