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
django-checkbox-normalize preview
Releases
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 = True
to normalize for all modeladmins.
v0.1.2
- Add LICENSE file.
v0.1.1
- Fix BooleanField field style under small screen size.
v0.1.0
- First release.
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
File details
Details for the file django-checkbox-normalize-0.2.0.tar.gz
.
File metadata
- Download URL: django-checkbox-normalize-0.2.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35156d5e8cf5c17b029adc4874cfe0ce034899e16983b5377054dc57eb5a472a |
|
MD5 | 36befd2044e859a3423dbaab096de311 |
|
BLAKE2b-256 | 1fffdd109fb7033443d0f599f820ad3105b173e685b312a9729610551a6a4f02 |
File details
Details for the file django_checkbox_normalize-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: django_checkbox_normalize-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f6f2a2752579d4394a8deb8872c5639bb5b9d03b20808b912ff1d10f8fd22b8 |
|
MD5 | d200abb71c93d089964470ec9c9305a4 |
|
BLAKE2b-256 | 1cc7ddb850379aa7544b7e4c187c4fb53c3eed990d61e3db9ccb982515eb4739 |