From f0ad41eb6f4b67027c220ae103d83ec9f66d5258 Mon Sep 17 00:00:00 2001 From: Samuel Cattini-Schultz Date: Fri, 18 Jun 2021 04:51:38 +1000 Subject: [PATCH] Fix typos in "Working with Related Objects" docs (#6651) * Fix typo in "Working with Related Objects" docs * Fix typo in "Working with Related Objects" docs --- doc/build/tutorial/orm_related_objects.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/build/tutorial/orm_related_objects.rst b/doc/build/tutorial/orm_related_objects.rst index d5f4bfc256..d92331def0 100644 --- a/doc/build/tutorial/orm_related_objects.rst +++ b/doc/build/tutorial/orm_related_objects.rst @@ -122,7 +122,7 @@ to its ``Address.user`` attribute, that ``Address`` becomes part of the [Address(id=None, email_address='pearl.krabs@gmail.com'), Address(id=None, email_address='pearl@aol.com')] We actually made use of the ``user`` parameter as a keyword argument in the -``Address`` consructor, which is accepted just like any other mapped attribute +``Address`` constructor, which is accepted just like any other mapped attribute that was declared on the ``Address`` class. It is equivalent to assignment of the ``Address.user`` attribute after the fact:: @@ -159,7 +159,7 @@ The three objects are now in the :term:`pending` state; this means they are ready to be the subject of an INSERT operation but this has not yet proceeded; all three objects have no primary key assigned yet, and in addition, the ``a1`` and ``a2`` objects have an attribute called ``user_id`` which refers to the -:class:`_schema.Column` that has a :class:`_schema.ForeignKeyConsraint` +:class:`_schema.Column` that has a :class:`_schema.ForeignKeyConstraint` referring to the ``user_account.id`` column; these are also ``None`` as the objects are not yet associated with a real database row:: -- 2.47.2