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
: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
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
Close
Hashes for django-boolean-switch-0.2.8.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1774e16fd40f0e65c3ad03637c0facb26fae61bdca054ff945975ddcae22b845 |
|
MD5 | 33087acf11c47fbc2e2488db6ef4f03d |
|
BLAKE2b-256 | 1863a71acdb0ba1b0a9c635bfb70a12dccbcceaa4235d2e0b3b2fea17848e4d3 |