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

Compatibility with Flask 3, WTForms 3, SQLAlchemy 2.0 and others #2467

Merged
merged 6 commits into from
Aug 6, 2024

Commits on Jul 31, 2024

  1. Configuration menu
    Copy the full SHA
    32ff7bd View commit details
    Browse the repository at this point in the history
  2. Filter test_rule_inlinefieldlist "Fields missing from ruleset" warning

    flask_admin/tests/sqla/test_form_rules.py:135: in test_rule_inlinefieldlist
        view = CustomModelView(Model1, db.session,
    flask_admin/tests/sqla/test_basic.py:33: in __init__
        super(CustomModelView, self).__init__(model, session, name, category,
    flask_admin/contrib/sqla/view.py:346: in __init__
        super(ModelView, self).__init__(model, name, category, endpoint, url, static_folder,
    flask_admin/model/base.py:834: in __init__
        self._refresh_cache()
    flask_admin/model/base.py:968: in _refresh_cache
        self._validate_form_class(self._form_create_rules, self._create_form_class)
    flask_admin/model/base.py:1447: in _validate_form_class
        self._show_missing_fields_warning('Fields missing from ruleset: %s' % (','.join(missing_fields)))
    flask_admin/model/base.py:1431: in _show_missing_fields_warning
        warnings.warn(text)
    E   UserWarning: Fields missing from ruleset: test2,test3,test4,bool_field,date_field,time_field,datetime_field,email_field,enum_field,choice_field,sqla_utils_choice,sqla_utils_enum,sqla_utils_arrow,sqla_utils_uuid,sqla_utils_url,sqla_utils_ip_address,sqla_utils_currency,sqla_utils_color
    cjmayo committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    0dcb6ad View commit details
    Browse the repository at this point in the history
  3. Allow flask 3 and wtforms 3

    cjmayo committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    aa7cb91 View commit details
    Browse the repository at this point in the history
  4. Restrict flask-mongoengine to sqlalchemy 1 and wtforms 2

    __________________________________ test_model __________________________________
    flask_admin/tests/mongoengine/test_basic.py:117: in test_model
        assert model.test3 == ''
    E   AssertionError: assert None == ''
    E    +  where None = <Model1: test1large>.test3
    cjmayo committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    eeeadb4 View commit details
    Browse the repository at this point in the history
  5. Remove type formatter warning filter from tests

    Resolved in:
    25ac435 ("Update formatter function signatures", 2024-07-15)
    cjmayo committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    be57df2 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2024

  1. Configuration menu
    Copy the full SHA
    e8449f5 View commit details
    Browse the repository at this point in the history