Skip to main content

Django app to switch boolean fields from list view

Project description

.. image:: https://badge.fury.io/py/django-boolean-switch.svg :target: http://badge.fury.io/py/django-boolean-switch

===== django-boolean-switch

Simple app to change your boolean fields in admin list view quickly in one click

Usage

  1. Getting the code for the latest stable release use 'pip'::

    pip install django-boolean-switch

  2. Add "boolean_switch" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = ( ... 'boolean_switch', )

  3. Include the boolean_switch URLconf in your project urls.py like this::

    url(r'^admin/', include('boolean_switch.urls')), ... url(r'^admin/', include(admin.site.urls)),

  4. Use mixin to modify you admin output::

    from boolean_switch.admin import AdminBooleanMixin

    class MyModelAdmin(AdminBooleanMixin, admin.ModelAdmin): list_display = ['sometitle', 'somebooleanfiled']

  5. Now you can change boolean fields flag from list view in one click!

.. image:: http://s30.postimg.org/hqngbv1up/ezgif_com_resize.gif

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-boolean-switch-0.2.9.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

django_boolean_switch-0.2.9-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file django-boolean-switch-0.2.9.tar.gz.

File metadata

  • Download URL: django-boolean-switch-0.2.9.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for django-boolean-switch-0.2.9.tar.gz
Algorithm Hash digest
SHA256 490d88322d67275d34c784a60ea383f06b3315cbea19412ffcd13eb699451ef3
MD5 312806d7dbfeb79d5b75d37ca18906e4
BLAKE2b-256 79c39689ba2043df2a6366917f369eef946c3d491c4da8167a8b4a89a856f2c3

See more details on using hashes here.

File details

Details for the file django_boolean_switch-0.2.9-py3-none-any.whl.

File metadata

  • Download URL: django_boolean_switch-0.2.9-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for django_boolean_switch-0.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 56740a206b1656771b5890456fd9d8c697023219bf3487204d9278b04cc45266
MD5 d8c2d72d2895c1a02823bedd4eb1af79
BLAKE2b-256 b83c246f2a835042cfe27b70201bcc56d683646e8868c7de81e43becd637a52b

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