]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix missing data type in Article.writer_id mapping example (#12649)
authorkrave1986 <krave@qq.com>
Sat, 7 Jun 2025 20:03:10 +0000 (04:03 +0800)
committerFederico Caselli <cfederico87@gmail.com>
Sat, 7 Jun 2025 20:04:07 +0000 (22:04 +0200)
(cherry picked from commit f2eda87a6b7f1534851da2d0370bd034d1791bfc)

doc/build/orm/join_conditions.rst

index 6422a74875d43ca9521e36b4cf1e62594cad4f08..8a220c9d8a1f5ca56d96fd43bc2bcb5eb0eedb3d 100644 (file)
@@ -389,7 +389,7 @@ for both; then to make ``Article`` refer to ``Writer`` as well,
 
         article_id = mapped_column(Integer)
         magazine_id = mapped_column(ForeignKey("magazine.id"))
-        writer_id = mapped_column()
+        writer_id = mapped_column(Integer)
 
         magazine = relationship("Magazine")
         writer = relationship("Writer")