File python-Flask-Admin.changes of Package python-Flask-Admin

-------------------------------------------------------------------
Tue Oct 28 07:59:51 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>

- Drop upstreamed patches:
  - model-from-model.patch
  - switch-to-babel.patch
  - reverse-relation-for-model.patch
  - bytes-not-str.patch
- Update to 2.0.0:Update to 2.0.0:
  - 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_.
  - 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

-------------------------------------------------------------------
Fri Feb  9 15:44:34 UTC 2024 - Dirk Müller <dmueller@suse.com>

- add %sle15_python_module_pythons

-------------------------------------------------------------------
Tue Oct 24 12:14:40 UTC 2023 - Markéta Machová <mmachova@suse.com>

- Add few patches to fix tests (from gh#flask-admin/flask-admin#2328):
  * model-from-model.patch
  * reverse-relation-for-model.patch
  * bytes-not-str.patch

-------------------------------------------------------------------
Mon Jul 10 02:12:28 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>

- Add patch switch-to-babel.patch:
  * Use Flask-Babel, rather than Flask-BabelEx.
- Skip a recalcitrant test.

-------------------------------------------------------------------
Mon Jun 19 01:49:58 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>

- Update to 1.6.1:
  * No upstream changelog, issue filed.
- Drop patches redirect-location-assertions.patch, fix-tests.patch.
- Pin SQLAlchemy requirement to < 2.
- Switch to pyproject macros.

-------------------------------------------------------------------
Tue Jan  3 12:02:54 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>

- Add fix-tests.patch to make tests compatible with latest Flask release
 * gh#flask-admin/flask-admin#2309
 * gh#flask-admin/flask-admin#2316

-------------------------------------------------------------------
Fri Jun 24 04:28:31 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>

- Add patch redirect-location-assertions.patch:
  * Remove hostname when checking location from redirects.
- Add PyYAML and requre to BuildRequires.

-------------------------------------------------------------------
Sat Feb 19 19:09:29 UTC 2022 - Arun Persaud <arun@gmx.de>

- specfile:
  * update copyright year
  * skip python 2 builds
  * removed patches, both included upstream (remove_nose.patch, support-new-wtforms.patch)

- update to version 1.6.0:
  * Dropped Python 2 support
  * WTForms 3.0 support
  * Various fixes

-------------------------------------------------------------------
Fri Aug  6 07:41:36 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>

- Add patch support-new-wtforms.patch:
  * Support new WTForms.
- Skip two recalcitrant tests.

-------------------------------------------------------------------
Tue Jun  1 07:05:06 UTC 2021 - Matej Cepl <mcepl@suse.com>

- Update to 1.5.8:
  - SQLAlchemy 1.4/2.0, 1.4.5+ compatibility fixes
  - Redis CLI fixes
  - Bootstrap 4 support!
  - Added hook for custom SQLAlchemy models initializers
- Patch remove_nose.patch rebased.

-------------------------------------------------------------------
Thu Oct 29 20:46:47 UTC 2020 - Matej Cepl <mcepl@suse.com>

- Add remove_nose.patch to remove dependency on nose
  (gh#flask-admin/flask-admin#2047).

-------------------------------------------------------------------
Mon Sep 28 11:33:32 UTC 2020 - Hans-Peter Jansen <hpj@urpla.net>

- Exclude a failing test

-------------------------------------------------------------------
Mon Apr 20 13:58:33 UTC 2020 - Petr Cervinka <petr@cervinka.net>

- Fix build without python2

-------------------------------------------------------------------
Sat Apr 11 21:42:05 UTC 2020 - Arun Persaud <arun@gmx.de>

- update to version 1.5.6:
  * SQLAlchemy 1.3.6 compatibility fix
  * Python 3.8 support

-------------------------------------------------------------------
Sat Feb  8 20:56:30 UTC 2020 - Arun Persaud <arun@gmx.de>

- specfile:
  * update copyright year

- update to version 1.5.5:
  * Werkzeug 1.0 compatibility fix
  * Use fa-circle-o icon for unchecked booleans
  * A few SQLAlchemy-related bug fixes

-------------------------------------------------------------------
Sat Oct 19 16:24:02 UTC 2019 - Arun Persaud <arun@gmx.de>

- specfile:
  * update copyright year
  * updated required pillow version
  * require arrow, colour, sqlalchemy-utils for tests

- update to version 1.5.4:
  * Fix display of inline x-editable boolean fields on list view
  * Add support for several SQLAlchemy-Utils data types
  * Support searching on SQLAlchemy hybrid properties
  * Extra URL paramaters are now propagated to the next page when
    searching / filtering
  * Add enum34 dependency when running on legacy Python version
  * Update Mapbox API v1 URL format
  * Update jQuery and moment dependencies in templates
  * Fixed a datepicker issue, where only dates up to 2015 were showing
    up
  * Updated Pillow dependency version

-------------------------------------------------------------------
Sun Dec 30 19:01:04 UTC 2018 - Arun Persaud <arun@gmx.de>

- specfile:
  * be more specific in %files section

- update to version 1.5.3:
  * Fixed XSS vulnerability
  * Support nested categories in the navbar menu
  * SQLAlchemy
    + sort on multiple columns with column_default_sort
    + sort on related models in column_sortable_list
    + fix: inline model forms can now also be used for models with
      multiple primary keys
    + support for using mapped column_property
  * Upgrade Leaflet and Leaflet.draw plugins, used for geoalchemy
    integration
  * Specify minimum_input_length for ajax widget
  * Peewee: support composite keys
  * MongoEngine: when searching/filtering the input is now regarded as
    case-insensitive by default
  * FileAdmin
    + handle special characters in filename
    + fix a bug with listing directories on Windows
    + avoid raising an exception when unknown sort parameter is
      encountered
  * WTForms 3 support

-------------------------------------------------------------------
Tue Oct 30 10:24:07 UTC 2018 - Jan Engelhardt <jengelh@inai.de>

- Trim bias and filler wording from descriptions.

-------------------------------------------------------------------
Tue Oct 30 09:41:06 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>

- Initial commit, needed by acitoolkit
openSUSE Build Service is sponsored by