Skip to content
Snippets Groups Projects
Commit 9de72116 authored by Brady James Garvin's avatar Brady James Garvin
Browse files

Fixed transposition error.

parent 6b2f2a30
No related branches found
No related tags found
No related merge requests found
...@@ -43,12 +43,12 @@ class Person(Persisted): ...@@ -43,12 +43,12 @@ class Person(Persisted):
# Note that all of these conditions are written in terms of classes, OO fields, and Python operators, not tables, # Note that all of these conditions are written in terms of classes, OO fields, and Python operators, not tables,
# DB fields, or SQL operators. # DB fields, or SQL operators.
reviewers = relationship('Person', uselist=True, secondary='reviewerships', reviewers = relationship('Person', uselist=True, secondary='reviewerships',
primaryjoin='Reviewership.reviewer_id == Person.person_id',
secondaryjoin='Reviewership.reviewee_id == Person.person_id',
back_populates='reviewees')
reviewees = relationship('Person', uselist=True, secondary='reviewerships',
primaryjoin='Reviewership.reviewee_id == Person.person_id', primaryjoin='Reviewership.reviewee_id == Person.person_id',
secondaryjoin='Reviewership.reviewer_id == Person.person_id', secondaryjoin='Reviewership.reviewer_id == Person.person_id',
back_populates='reviewees')
reviewees = relationship('Person', uselist=True, secondary='reviewerships',
primaryjoin='Reviewership.reviewer_id == Person.person_id',
secondaryjoin='Reviewership.reviewee_id == Person.person_id',
back_populates='reviewers') back_populates='reviewers')
# If we want to be able to access the join table's pairs themselves, we write a standard one-to-many relationship # If we want to be able to access the join table's pairs themselves, we write a standard one-to-many relationship
# with extra information. # with extra information.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment