From f11f3fd92ebba5b4c75aa3e0c8738d7bfe62698c Mon Sep 17 00:00:00 2001 From: Doctor Date: Tue, 26 Apr 2022 23:05:41 +0300 Subject: [PATCH] use correct indentation in `basic_relationship.rst` 'association table' code block --- doc/build/orm/basic_relationships.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/build/orm/basic_relationships.rst b/doc/build/orm/basic_relationships.rst index bdfd9a51f9..dfc1c09043 100644 --- a/doc/build/orm/basic_relationships.rst +++ b/doc/build/orm/basic_relationships.rst @@ -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 -- 2.47.3