Skip to content

Releases: pallets-eco/flask-sqlalchemy

2.5.1

18 Mar 19:08
da0e0df
Compare
Choose a tag to compare

Fixed compatibility with SQLAlchemy 1.4 and Python 2.7.

2.5.0

18 Mar 19:08
c11fe63
Compare
Choose a tag to compare

2.4.4

14 Jul 16:54
e5fcf62
Compare
Choose a tag to compare

2.4.3

26 May 22:20
d257601
Compare
Choose a tag to compare

2.4.2

25 May 23:19
a19ca9b
Compare
Choose a tag to compare

2.4.1

24 Sep 14:35
16bcf97
Compare
Choose a tag to compare
release version 2.4.1

2.4.0

24 Sep 14:26
2c7fde1
Compare
Choose a tag to compare
release version 2.4.0

2.3.2

11 Oct 15:08
Compare
Choose a tag to compare

Install or upgrade

Install from PyPI with pip:

pip install -U Flask-SQLAlchemy

Changelog

  • Don't mask the parent table for single-table inheritance models. (#561)

2.3.1

04 Oct 22:04
be45a9b
Compare
Choose a tag to compare

Install or upgrade

Install from PyPI with pip:

pip install -U Flask-SQLAlchemy

Changelog

  • If a model has a table name that matches an existing table in the metadata,
    use that table. Fixes a regression where reflected tables were not picked up
    by models. (#551)
  • Raise the correct error when a model has a table name but no primary key.
    (#556)
  • Fix repr on models that don't have an identity because they have not been
    flushed yet. (#555)
  • Allow specifying a max_per_page limit for pagination, to avoid users
    specifying high values in the request args. (#542)
  • For paginate with error_out=False, the minimum value for page is
    1 and per_page is 0. (#558)

2.3.0

28 Sep 14:15
adec8ff
Compare
Choose a tag to compare

Install or upgrade

Install from PyPI with pip:

pip install -U Flask-SQLAlchemy

Changelog

  • Multiple bugs with __tablename__ generation are fixed. Names will be
    generated for models that define a primary key, but not for single-table
    inheritance subclasses. Names will not override a declared_attr.
    PrimaryKeyConstraint is detected. (#541)
  • Passing an existing declarative_base() as model_class to
    SQLAlchemy.__init__ will use this as the base class instead of creating
    one. This allows customizing the metaclass used to construct the base.
    (#546)
  • The undocumented DeclarativeMeta internals that the extension uses for
    binds and table name generation have been refactored to work as mixins.
    Documentation is added about how to create a custom metaclass that does not
    do table name generation. (#546)
  • Model and metaclass code has been moved to a new models module.
    _BoundDeclarativeMeta is renamed to DefaultMeta; the old name will be
    removed in 3.0. (#546)
  • Models have a default repr that shows the model name and primary key.
    (#530)
  • Fixed a bug where using init_app would cause connectors to always use the
    current_app rather than the app they were created for. This caused issues
    when multiple apps were registered with the extension. (#547)