Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Toggle control for Flask Admin inline form.

Project description


Better boolean toggle control for Flask-Admin inline form.

Better UX

Replace this:

with this:


pip install flask-admin-toggle-control


Edit your view class to integrate toggle control:

  1. Inherit from ViewMixin:

    class SomeView(flask_admin_toggle_control.ViewMixin, ModelView):
  2. Define fields to show with toggle control:

    class SomeView(flask_admin_toggle_control.ViewMixin, ModelView):
        column_toggle_control_list = ["boolean_field1", "boolean_field2"]
  3. Do not forget to have these fields editable:

    class SomeView(flask_admin_toggle_control.ViewMixin, ModelView):
        column_toggle_control_list = ["boolean_field1", "boolean_field2"]
        column_editable_list = ["boolean_field1", "boolean_field2", "other_editable_field"]

Serve component JS file from static endpoint, pass your application object as a parameter:

app = Flask(__name__)



  • Added installation and integration instructions
  • Extracted view mixin for easier integration
  • Helper to create static endpoint

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Flask-Admin-Toggle-Control, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size Flask-Admin-Toggle-Control-0.1.3.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page