]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
use correct indentation in `basic_relationship.rst` 'association table' code block
authorDoctor <thirvondukr@gmail.com>
Tue, 26 Apr 2022 20:05:41 +0000 (23:05 +0300)
committerDoctor <thirvondukr@gmail.com>
Tue, 26 Apr 2022 20:05:41 +0000 (23:05 +0300)
doc/build/orm/basic_relationships.rst

index bdfd9a51f954be6beb3c5fdea3b0ed3cceb22128..dfc1c0904323e51ceed625fcea3582e65bc6c9cc 100644 (file)
@@ -272,12 +272,12 @@ remote tables with which to link::
     this ensures that duplicate rows won't be persisted within the table regardless
     of issues on the application side::
 
-    association_table = Table(
-        "association",
-        Base.metadata,
-        Column("left_id", ForeignKey("left.id"), primary_key=True),
-        Column("right_id", ForeignKey("right.id"), primary_key=True),
-    )
+        association_table = Table(
+            "association",
+            Base.metadata,
+            Column("left_id", ForeignKey("left.id"), primary_key=True),
+            Column("right_id", ForeignKey("right.id"), primary_key=True),
+        )
 
 For a bidirectional relationship, both sides of the relationship contain a
 collection.  Specify using :paramref:`_orm.relationship.back_populates`, and