Skip to main content

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 = True to 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

django_checkbox_normalize-0.2.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_checkbox_normalize-0.2.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file django_checkbox_normalize-0.2.2.tar.gz.

File metadata

File hashes

Hashes for django_checkbox_normalize-0.2.2.tar.gz
Algorithm Hash digest
SHA256 767b95c8a22217d1fa4a85358464b037d9b220c13f14d2903f34d8625d0c39c2
MD5 19e631ed4135566be0f01ed76fcd92e9
BLAKE2b-256 19fc0c7b551f0343f133cca316c1dbf0e88eb5c9a1bf80bdae55820830db9b82

See more details on using hashes here.

File details

Details for the file django_checkbox_normalize-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_checkbox_normalize-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 80c0ce4759fe786338f900055bf29c08747e364df42c749c63f6c6e721423196
MD5 43fdd0002777f19ae2ebe3c8aeebb896
BLAKE2b-256 e2fcf5abf5b8080a0c2ef114c84875c881820461d9cb73660fc53cf801e261ef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page