Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make BaseView compatible with Flask 2.2.x #2316

Merged
merged 1 commit into from Feb 2, 2023

Conversation

danigm
Copy link
Contributor

@danigm danigm commented Jan 3, 2023

The as_view method in the latest Flask version doesn't receive any positional argument, since this change:
pallets/flask@6e23239

This patch makes the code in base compatible with this new version, trying to call the view with the positional argument if present and in other case it's passed as cls named argument.

This fixes the test_nested_flask_views that was broken for this version.

The `as_view` method in the latest Flask version doesn't receive any
positional argument, since this change:
pallets/flask@6e23239

This patch makes the code in base compatible with this new version,
trying to call the view with the positional argument if present and in
other case it's passed as `cls` named argument.

This fixes the `test_nested_flask_views` that was broken for this
version.
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Jan 3, 2023
https://build.opensuse.org/request/show/1046499
by user dgarcia + dimstar_suse
- Add fix-tests.patch to make tests compatible with latest Flask release
 * gh#flask-admin/flask-admin#2309
 * gh#flask-admin/flask-admin#2316
@mrjoes mrjoes merged commit 6eb9d56 into flask-admin:master Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants