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 hashes)

Uploaded Source

Built Distribution

django_checkbox_normalize-0.2.1-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

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