• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zostera / django-bootstrap5 / 30355472208
96%

Build:
DEFAULT BRANCH: main
Ran 28 Jul 2026 11:37AM UTC
Jobs 1
Files 15
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Jul 2026 11:36AM UTC coverage: 96.072%. Remained the same
30355472208

push

github

web-flow
Rewrite radio_select.html attrs handling (#851)

Fixes two symptoms of the same root cause: the template manually
reconstructed each <input>'s attributes from a hardcoded whitelist
(value, checked, form, disabled), silently dropping any other attrs
set via a custom create_option() override (#300) — and separately
included Django's generic attrs.html on the wrapper <div>, which
isn't a form-control element, leaking disabled/required/form and an
always-empty class="" onto it (#806).

- Wrapper <div> now only gets id/class explicitly, matching the
  pattern radio_select_button_group.html already uses.
- Each <input> now forwards its own option.attrs generically (id,
  checked, disabled, required, form, and anything custom), excluding
  only `class` (rendered separately via bootstrap_classes to combine
  with server-side-validation classes). This matches Django's own
  stock RadioSelect/CheckboxSelectMultiple rendering, which already
  merges widget-level attrs into each option via option_inherits_attrs.

Net effect: individual radio/checkbox inputs now correctly get
required/disabled (previously only the wrapper div did, which was
itself part of the bug), and #845's ad-hoc `{% if widget.attrs.form %}`
line is no longer needed since option.attrs already includes it.

Added test coverage for CheckboxSelectMultiple (none existed before)
and updated every affected RadioSelect assertion. Confirmed each
change is real by reverting the template and re-running: the new
CheckboxSelectMultiple test and test_disabled_select both fail
cleanly without the fix.

Fixes #300, #806.

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>

193 of 206 branches covered (93.69%)

Branch coverage included in aggregate %.

663 of 685 relevant lines covered (96.79%)

13.55 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30355472208.1 28 Jul 2026 11:38AM UTC 15
96.07
GitHub Action Run
Source Files on build 30355472208
  • Tree
  • List 15
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 6c2f9afe on github
  • Prev Build on main (#30352998918)
  • Next Build on main (#30356002531)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc