https://github.com/makeev/django-boolean-switch
Django app to change boolean fields in one click
https://github.com/makeev/django-boolean-switch
Last synced: 3 months ago
JSON representation
Django app to change boolean fields in one click
- Host: GitHub
- URL: https://github.com/makeev/django-boolean-switch
- Owner: makeev
- License: mit
- Created: 2015-07-22T08:26:19.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2022-01-05T07:48:33.000Z (over 4 years ago)
- Last Synced: 2025-12-15T07:37:29.611Z (6 months ago)
- Language: Python
- Size: 84 KB
- Stars: 4
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
.. 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