From: Doctor Date: Tue, 26 Apr 2022 20:05:41 +0000 (+0300) Subject: use correct indentation in `basic_relationship.rst` 'association table' code block X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f11f3fd92ebba5b4c75aa3e0c8738d7bfe62698c;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git use correct indentation in `basic_relationship.rst` 'association table' code block --- 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