Skip to content

Releases: pallets-eco/flask-admin

v2.0.2

11 Nov 21:59
e26bee4

Choose a tag to compare

  • Adds support for Python 3.14: #2685
  • Adds a MenuDivider item for bootstrap themes: #2696
  • Field errors are now shown in red text for bootstrap themes: #2699

v2.0.1

02 Nov 12:59
16d36f2

Choose a tag to compare

  • Fix documentation
  • Update arabic translations

v2.0.0

25 Oct 08:56
4179007

Choose a tag to compare

Breaking changes from v1.6.1:

  • Removed support for Python <3.10
  • Use of the boto library has been replaced by boto3. S3FileAdmin and S3Storage now accept an s3_client parameter taking a boto3.client('s3') instance rather than aws_access_key_id, aws_secret_access_key, and region parameters.
  • Azure Blob Storage SDK has been upgraded from the legacy version (v2) to the latest version (v12). AzureFileAdmin now accept blob_service_client rather than connection_string to give more flexibility with connection types.
  • Flask-BabelEx is no longer supported; the package is no longer maintained and Flask-Babel is recommended/active instead.
  • Mongoengine support in Flask-Admin no longer uses Flask-Mongoengine, as that library is no longer actively maintained.
  • Bootstrap2 and Bootstrap3 themes are no longer available.
  • Admin() now takes a theme parameter that encapsulates all of the configuration options for theming the admin instance. This replaces the template_mode parameter.
  • All remaining Flask-Admin config has been namespaced under FLASK_ADMIN_.
Config variable name What's changed
FLASK_ADMIN_SWATCH Removed; use Theme(swatch=...) instead
FLASK_ADMIN_FLUID_LAYOUT Removed; use Theme(fluid=...) instead
MAPBOX_MAP_ID Renamed to FLASK_ADMIN_MAPBOX_MAP_ID
MAPBOX_SEARCH Renamed to FLASK_ADMIN_MAPBOX_SEARCH
MAPBOX_ACCESS_TOKEN Renamed to FLASK_ADMIN_MAPBOX_ACCESS_TOKEN
GOOGLE_MAPS_API_KEY Renamed to FLASK_ADMIN_GOOGLE_MAPS_API_KEY
DEFAULT_CENTER_LAT Renamed to FLASK_ADMIN_DEFAULT_CENTER_LAT
DEFAULT_CENTER_LONG Renamed to FLASK_ADMIN_DEFAULT_CENTER_LONG
ADMIN_RAISE_ON_INTEGRITY_ERROR Renamed to FLASK_ADMIN_RAISE_ON_INTEGRITY_ERROR
ADMIN_RAISE_ON_VIEW_EXCEPTION Renamed to FLASK_ADMIN_RAISE_ON_VIEW_EXCEPTION

New functionality:

  • Added support for Python <=3.13
  • The default query for pymongo can be overridden
  • Flask async routes are supported
  • Flask-Admin now supports the host_matching mode of Flask apps. See documentation for how to configure this where needed.
  • Flask-Admin is now compatible with SQLAlchemy v2+, Flask v3+, WTForms v3+, and Pillow v10+.
  • Flask-Admin now declares its dependencies and supported dependency versions more cleanly, including using pip extras. If you use Flask-Admin with SQLAlchemy, for example, you should use pip install flask-admin[sqlalchemy] or list flask-admin[sqlalchemy] in your requirements.txt or pyproject.toml files.
  • Apps using content security policies to restrict the assets that can be loaded can now whitelist Flask-Admin's assets by passing a csp_nonce_generator function to the Admin instance. See examples or documentation for how to configure this where needed.
  • page_size_options can now be configured on Admin models, to restrict the page sizes that users can select. These are now enforced properly and cannot be bypassed by URL hacking.

Fixes:

  • Bootstrap menu icons should show up properly and not duplicated
  • Redis CLI commands are now case insensitive
  • SQLAlchemy boolean filters now convert "1" and "0" to Python booleans, which fixes a type coercion issue with psycopg(3).
  • Jinja templates can now be loaded in StrictUndefined mode.
  • Remove an implicit dependency on packaging
  • Fixed an error caused by the fallback implementation of gettext() (when used in templates)
  • Fixes compatibility with WTForms 3.2+.
  • The Apply button for filters will show/hide correctly again
  • Fix translations_path attribute when Flask-Admin is used with Flask-Babel
  • Some translation updates.
  • Date fields no longer override widget if set in form_args
  • “Save and Continue Editing” button no longer discards the “return URL” (allowing to retain filters when switching back to the list)

Misc:

  • Translations and docs have been updated
  • Various type hinting improvements and fixes

v2.0.0rc2

20 Oct 19:03
63347f2

Choose a tag to compare

v2.0.0rc2 Pre-release
Pre-release
  • Serbian translation updates

v2.0.0rc1

17 Oct 07:02
8e8dac7

Choose a tag to compare

v2.0.0rc1 Pre-release
Pre-release

Fixes:

  • SQLAlchemy boolean filters now convert "1" and "0" to Python booleans, which fixes a type coercion issue with psycopg(3).

v2.0.0a5

09 Oct 13:16
88e756d

Choose a tag to compare

v2.0.0a5 Pre-release
Pre-release

New functionality:

  • Mongonengine support has been added back (no longer using flask-mongoengine): #2611
  • The default query for pymongo can be overridden: #2661
  • Flask async routes are supported: #2659

Fixes:

  • Bootstrap menu icons should show up properly and not duplicated: #2666
  • Redis CLI commands are now case insensitive: #2411

Misc:

  • Translations and docs have been updated
  • Various type hinting improvements and fixes

v2.0.0a4

22 Feb 13:56
1ab228f

Choose a tag to compare

v2.0.0a4 Pre-release
Pre-release

Breaking changes:

  • Azure Blob Storage SDK has been upgraded from the legacy version (v2) to the latest version (v12). AzureFileAdmin now accept blob_service_client rather than connection_string to give more flexibility with connection types.

v2.0.0a3

23 Nov 09:46
60b2a49

Choose a tag to compare

v2.0.0a3 Pre-release
Pre-release

Fixes:

  • Jinja templates can now be loaded in StrictUndefined mode.
  • Remove an implicit dependency on packaging

v2.0.0a2

28 Oct 21:17
190a7c9

Choose a tag to compare

v2.0.0a2 Pre-release
Pre-release

2.0.0a2

Breaking changes:

  • Removed support for Python 3.8.
  • Use of the boto library has been replaced by boto3. S3FileAdmin and S3Storage now accept an s3_client parameter taking a boto3.client('s3') instance rather than aws_access_key_id, aws_secret_access_key, and region parameters.

v2.0.0a1

26 Oct 18:14
2da0995

Choose a tag to compare

v2.0.0a1 Pre-release
Pre-release

2.0.0a1

Fixes:

  • Fixes compatibility with WTForms 3.2+.
  • The Apply button for filters will show/hide correctly again
  • Fix translations_path attribute when Flask-Admin is used with Flask-Babel
  • Some translation updates.
  • Date fields no longer override widget if set in form_args
  • “Save and Continue Editing” button no longer discards the “return URL” (allowing to retain filters when switching back to the list)