]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
remove paragraph re: init=False as I think this is a 2.1 thing
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 9 Jan 2026 14:19:22 +0000 (09:19 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 9 Jan 2026 14:19:22 +0000 (09:19 -0500)
Change-Id: I78a61f75a2288e6823704cd10fcbbdb52352a25d

doc/build/faq/ormconfiguration.rst

index a2c8ef93265987212f6f1b509aaa795c59008996..ba449d76dccd9975a227cc88abd57f4051cf43df 100644 (file)
@@ -414,17 +414,6 @@ explicitly passed.  Using this parameter is **mutually exclusive** against the
 :paramref:`_schema.Column.insert_default` parameter, meaning that both cannot
 be used at the same time.
 
-The :paramref:`_orm.mapped_column.default` and
-:paramref:`_orm.mapped_column.insert_default` parameters may also be used
-(one or the other, not both)
-for a SQLAlchemy-mapped dataclass field, or for a dataclass overall,
-that indicates ``init=False``.
-In this usage, if :paramref:`_orm.mapped_column.default` is used, the default
-value will be available on the constructed object immediately as well as
-used within the INSERT statement.  If :paramref:`_orm.mapped_column.insert_default`
-is used, the constructed object will return ``None`` for the attribute value,
-but the default value will still be used for the INSERT statement.
-
 For the specific case of using a callable to generate defaults, the situation
 changes a bit; the :paramref:`_orm.mapped_column.default_factory` parameter is
 a **dataclass only** parameter that may be used to generate new default values