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
-
Getting the code for the latest stable release use 'pip'::
pip install django-boolean-switch
-
Add "boolean_switch" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = ( ... 'boolean_switch', )
-
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)),
-
Use mixin to modify you admin output::
from boolean_switch.admin import AdminBooleanMixin
class MyModelAdmin(AdminBooleanMixin, admin.ModelAdmin): list_display = ['sometitle', 'somebooleanfiled']
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django-boolean-switch-0.2.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 490d88322d67275d34c784a60ea383f06b3315cbea19412ffcd13eb699451ef3 |
|
MD5 | 312806d7dbfeb79d5b75d37ca18906e4 |
|
BLAKE2b-256 | 79c39689ba2043df2a6366917f369eef946c3d491c4da8167a8b4a89a856f2c3 |
Hashes for django_boolean_switch-0.2.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56740a206b1656771b5890456fd9d8c697023219bf3487204d9278b04cc45266 |
|
MD5 | d8c2d72d2895c1a02823bedd4eb1af79 |
|
BLAKE2b-256 | b83c246f2a835042cfe27b70201bcc56d683646e8868c7de81e43becd637a52b |