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

django-checkbox-normalize preview

django-checkbox-normalize preview

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.

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.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file django-checkbox-normalize-0.2.1.tar.gz.

File metadata

File hashes

Hashes for django-checkbox-normalize-0.2.1.tar.gz
Algorithm Hash digest
SHA256 c04591557c6ff421e1b16dd520d62ced57302a8c5a0562c00e72ca565443a8e4
MD5 7ffd72536f9c4b480ab51f1d637e5e84
BLAKE2b-256 50643360cea098ab05bdd06a2d6305f97189faa9cbf1fb6e1d9e196b402a9c08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_checkbox_normalize-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0715336d882b199cfa2c144eac0da397770725d0371413dade4bdd0ee0203522
MD5 ebf13fac67d08155e8ac9e5488ab950c
BLAKE2b-256 f05668b4e64ddc706ef70f23489e7e9e50ee4ac96f15ae3c6e4f86948af33baa

See more details on using hashes here.

Supported by

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