]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Minor fixes in the ext.hybrid documentation.
authorRandy Barlow <randy@electronsweatshop.com>
Sun, 23 Oct 2016 14:34:25 +0000 (10:34 -0400)
committerRandy Barlow <randy@electronsweatshop.com>
Sun, 23 Oct 2016 14:34:25 +0000 (10:34 -0400)
lib/sqlalchemy/ext/hybrid.py

index 99f938ebbeebcb1a5563567617a94fc7de314b34..90e48188607dedd9bc1e414fcd9a4f217a01d94e 100644 (file)
@@ -188,7 +188,7 @@ Working with Relationships
 
 There's no essential difference when creating hybrids that work with
 related objects as opposed to column-based data. The need for distinct
-expressions tends to be greater.  Two variants of we'll illustrate
+expressions tends to be greater.  The two variants we'll illustrate
 are the "join-dependent" hybrid, and the "correlated subquery" hybrid.
 
 Join-Dependent Relationship Hybrid
@@ -505,7 +505,7 @@ into a hierarchical tree pattern::
 
     class Node(Base):
         __tablename__ = 'node'
-        id =Column(Integer, primary_key=True)
+        id = Column(Integer, primary_key=True)
         parent_id = Column(Integer, ForeignKey('node.id'))
         parent = relationship("Node", remote_side=id)