]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
add missing abstract concrete base changelog
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 19 Aug 2022 16:30:35 +0000 (12:30 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 19 Aug 2022 16:30:35 +0000 (12:30 -0400)
Was missing from commit d0abdbe247dc82db51aa0af3d31b0510

Fixes: #8403
Change-Id: Ic4d9116236072ce495b5bef2671515a24d04eca2

doc/build/changelog/unreleased_20/8403.rst [new file with mode: 0644]

diff --git a/doc/build/changelog/unreleased_20/8403.rst b/doc/build/changelog/unreleased_20/8403.rst
new file mode 100644 (file)
index 0000000..f7d2b65
--- /dev/null
@@ -0,0 +1,16 @@
+.. change::
+    :tags: bug, orm
+    :tickets: 8403
+
+    Added new parameter :paramref:`.AbstractConcreteBase.strict_attrs` to the
+    :class:`.AbstractConcreteBase` declarative mixin class. The effect of this
+    parameter is that the scope of attributes on subclasses is correctly
+    limited to the subclass in which each attribute is declared, rather than
+    the previous behavior where all attributes of the entire hierarchy are
+    applied to the base "abstract" class. This produces a cleaner, more correct
+    mapping where subclasses no longer have non-useful attributes on them which
+    are only relevant to sibling classes. The default for this parameter is
+    False, which leaves the previous behavior unchanged; this is to support
+    existing code that makes explicit use of these attributes in queries.
+    To migrate to the newer approach, apply explicit attributes to the abstract
+    base class as needed.
\ No newline at end of file