Skip to content

static: js: css: Make multiple select fields work with Django 4.0

Sunil Mohan Adapa requested to merge sunilmohan/freedombox:django-40 into master

Closes: #2228 (closed).

  • Django 4.0 changed to using <div> instead of using <ul> and <li> for multiple choice select fields. Update code for the select-all button to work with the new HTML structure.

  • Add styling to ensure that multiple choice select field appears similar to previous <ul> and <li> based style.

  • This patch assumes that django-bootstrap-form has support for Django 4.0 as seen in https://github.com/tzangms/django-bootstrap-form/pull/110 .

Tests:

  • Radio select seem to have no issues. Checked in networks -> connection type page.

  • Open Backups -> Create backup page and ensure that select all button works and appears same on testing (Django 3.2) and unstable (Django 4.0).

Signed-off-by: Sunil Mohan Adapa sunil@medhas.org

Edited by Sunil Mohan Adapa

Merge request reports

Loading