]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix a docs typo (#10912)
authorJeff Balogh <jeff@jbalogh.me>
Tue, 23 Jan 2024 19:25:10 +0000 (13:25 -0600)
committerGitHub <noreply@github.com>
Tue, 23 Jan 2024 19:25:10 +0000 (20:25 +0100)
The code following this declaration suggests the employee.type should be `sysadmin`

doc/build/orm/inheritance.rst

index fe3e06bf0f098b4dc10a30d808a407fa8a6082b4..574b4fc739a28d912f52e0e2724d699f68702593 100644 (file)
@@ -638,7 +638,7 @@ using :paramref:`_orm.Mapper.polymorphic_abstract` as follows::
     class SysAdmin(Technologist):
         """a systems administrator"""
 
-        __mapper_args__ = {"polymorphic_identity": "engineer"}
+        __mapper_args__ = {"polymorphic_identity": "sysadmin"}
 
 In the above example, the new classes ``Technologist`` and ``Executive``
 are ordinary mapped classes, and also indicate new columns to be added to the