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.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

django-checkbox-normalize-0.2.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for django-checkbox-normalize-0.2.0.tar.gz
Algorithm Hash digest
SHA256 35156d5e8cf5c17b029adc4874cfe0ce034899e16983b5377054dc57eb5a472a
MD5 36befd2044e859a3423dbaab096de311
BLAKE2b-256 1fffdd109fb7033443d0f599f820ad3105b173e685b312a9729610551a6a4f02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_checkbox_normalize-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f6f2a2752579d4394a8deb8872c5639bb5b9d03b20808b912ff1d10f8fd22b8
MD5 d200abb71c93d089964470ec9c9305a4
BLAKE2b-256 1cc7ddb850379aa7544b7e4c187c4fb53c3eed990d61e3db9ccb982515eb4739

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