summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandy Barlow <randy@electronsweatshop.com>2016-10-23 10:34:25 -0400
committerRandy Barlow <randy@electronsweatshop.com>2016-10-23 10:34:25 -0400
commit9974ab67f508a16423e8bc22122180b0bcdee807 (patch)
tree601ada2909bc41067de7b0e8cf57168c272ed667
parent1f32d014da5d40406cd5d3996be5283c2fc57b26 (diff)
downloadsqlalchemy-pr/316.tar.gz
Minor fixes in the ext.hybrid documentation.pr/316
-rw-r--r--lib/sqlalchemy/ext/hybrid.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/ext/hybrid.py b/lib/sqlalchemy/ext/hybrid.py
index 99f938ebb..90e481886 100644
--- a/lib/sqlalchemy/ext/hybrid.py
+++ b/lib/sqlalchemy/ext/hybrid.py
@@ -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)