It's NOT a good design to put label after checkbox for BooleanField widget, so let's make it normal.
Project description
django-checkbox-normalize
It's NOT a good design to put label after checkbox for BooleanField widget, so let's make it normal.
Install
pip install django-checkbox-normalize
Usage
Settings
Add django_checkbox_normalize to settings.INSTALLED_APPS.
INSTALLED_APPS = [
...
'django_checkbox_normalize',
...
]
Normalize for all model admins
Add DJANGO_CHECKBOX_NORMALIZE_FOR_ALL = True in pro/settings.py.
DJANGO_CHECKBOX_NORMALIZE_FOR_ALL = True
Normalize for one model admin
Add DjangoCheckboxNormalizeAdmin to one modeladmin.
class MyModelAdmin(DjangoCheckboxNormalizeAdmin, admin.ModelAdmin):
pass
Releases
v0.1.0
- First release.
v0.1.1
- Fix BooleanField field style under small screen size.
v0.1.2
- Add LICENSE file.
v0.2.0
- Instead of using template rewrite, use js dynamic repairing method.
- Add DjangoCheckboxNormalizeAdmin to normalize one site.
- Add
DJANGO_CHECKBOX_NORMALIZE_FOR_ALL = Trueto normalize for all modeladmins.
v0.2.1
- Doc update.
v0.2.2
- Doc update.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_checkbox_normalize-0.2.2.tar.gz.
File metadata
- Download URL: django_checkbox_normalize-0.2.2.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
767b95c8a22217d1fa4a85358464b037d9b220c13f14d2903f34d8625d0c39c2
|
|
| MD5 |
19e631ed4135566be0f01ed76fcd92e9
|
|
| BLAKE2b-256 |
19fc0c7b551f0343f133cca316c1dbf0e88eb5c9a1bf80bdae55820830db9b82
|
File details
Details for the file django_checkbox_normalize-0.2.2-py3-none-any.whl.
File metadata
- Download URL: django_checkbox_normalize-0.2.2-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80c0ce4759fe786338f900055bf29c08747e364df42c749c63f6c6e721423196
|
|
| MD5 |
43fdd0002777f19ae2ebe3c8aeebb896
|
|
| BLAKE2b-256 |
e2fcf5abf5b8080a0c2ef114c84875c881820461d9cb73660fc53cf801e261ef
|