Skip to main content

Django app to switch boolean fields from list view

Project description

.. image:: :target:

===== django-boolean-switch

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


  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 like this::

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

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

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

Uploaded Source

Built Distribution

django_boolean_switch-0.2.9-py3-none-any.whl (5.8 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