Privacy option radio buttons display horizontally under Django 4.0
See original GitHub issueThe radio buttons in the Page Privacy modal are laid out horizontally when running under Django 4.0.3, where previously they were arranged vertically. (I think I’ve seen similar glitches in other places where radio buttons / checkboxes are used - e.g. m2m relations in the page edit form - although I don’t have any examples to hand)
Under Django 3.2.12:
Under Django 4.0.3:
Steps to Reproduce
- Set up bakerydemo with Django 3.2
- Log in to admin and edit a blog page
- Switch to the Settings tab and click on “Set page privacy”; see options laid out vertically
pip install "Django>=4"
and restart server- Refresh page and click on “Set page privacy” again; see options laid out horizontally
- I have confirmed that this issue can be reproduced as described on a fresh Wagtail project: no (just on bakerydemo)
Technical details
- Python version: 3.8.0
- Django version: 4.0.3
- Wagtail version: stable/2.16.x
- Browser version: Chrome 99 https://www.whatsmybrowser.org/b/PQC9L
Issue Analytics
- State:
- Created a year ago
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Align radio buttons horizontally in django forms - Stack Overflow
I want to align the radio buttons horizontally. By default django forms displays in vertical format. feature_type = forms.TypedChoiceField( ...
Read more >First Issues Bot on Twitter: "Privacy option radio buttons display ...
The radio buttons in the Page Privacy modal are laid out horizontally when running under Django 4.0.3, where previously they were arranged vertically....
Read more >Align radio buttons horizontally in django forms - YouTube
Django : Align radio buttons horizontally in django forms [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] Django ...
Read more >The Django admin site
When you put 'django.contrib.admin' in your INSTALLED_APPS setting, ... If a field is present in radio_fields , Django will use a radio-button interface ......
Read more >Bootstrap 4 Radio Buttons in Form Tutorial with Examples
Set up Bootstrap Library in Your Project ; rel · stylesheet ; href · https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I figured out the problem by the inspect element in chrome and I run it as well, and it’s working fine. It can be solved by adding breaks tags easily, earlier it was not required, but now it is and the only problem is I am not getting where to change the code that I’ve seen with the help of inspect element.
@proshee assuming you have a development environment up and running, the first step is to reproduce this locally.
Once you can reproduce it you should be able to have one browser open with the ‘working’ version and another with the ‘broken’ version.
From here, start exploring the CSS used in the browser inspector to see what could be wrong, my guess this is a DOM structure change (e.g. maybe the radio buttons are in
ul
and the used to be in aol
) or a classes change.Other avenues of exploration
Hope that helps.