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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Grouped Choices for Radios and Checkboxes #1155

Merged
merged 2 commits into from
May 25, 2021

Conversation

smithdc1
Copy link
Member

@smithdc1 smithdc1 commented May 9, 2021

So here we are 馃帀 This fixes the long standing bug with grouped choices sets.

Fixes #690 and Follows #1119 and #813

I'll leave this here for comments, and look at pulling some of the related changes into separate PRs. There's also a few things which I want to take a closer look at.

  • Show image of before / after
  • Release notes
  • What's happening with the new required attribute on test_use_custom_control_is_used_in_radio_true.html
  • of course the tests fail on Django 2.2

Copy link
Member Author

@smithdc1 smithdc1 left a comment

Choose a reason for hiding this comment

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

A few notes to look at. The pre-work here is proving useful as we can clearly see what the changes are with quite a significant change to the underlying template.

@smithdc1
Copy link
Member Author

A picture says thousand words. I think this is looking ok, any comments?

Before
before

After
grouped-after

After with failing validation
grouped-after-failing

@smithdc1 smithdc1 merged commit a7c0c15 into django-crispy-forms:main May 25, 2021
@smithdc1 smithdc1 deleted the group_inputs branch May 25, 2021 07:01
@smithdc1 smithdc1 added this to the Next Release milestone May 25, 2021
@do-rtk
Copy link

do-rtk commented Jul 1, 2022

Hi @smithdc1 could you please re-examine this PR. It seems like it's been the cause of quite a number of issues raised for django-crispy-forms. I think we could probably find a way to re-do this that doesn't necessarily break a lot of the existing implementations. I ask because you're a lot more familiar with the code base. All the same, I want to really thank you for everything you've done to make this possible.

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

Successfully merging this pull request may close these issues.

Bootstrap 4 Radio Validation Support Grouped Choice Sets in CheckboxSelectMultiple
2 participants