-
Notifications
You must be signed in to change notification settings - Fork 227
Enable sorting when batching is enabled #355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ac57fd4
6417061
535afbe
b91fede
515060b
d6746e3
027ea0e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,6 +110,24 @@ class Article(Base): | |
headline = Column(String(100)) | ||
pub_date = Column(Date()) | ||
reporter_id = Column(Integer(), ForeignKey("reporters.id")) | ||
readers = relationship( | ||
"Reader", secondary="articles_readers", back_populates="articles" | ||
) | ||
|
||
|
||
class Reader(Base): | ||
__tablename__ = "readers" | ||
id = Column(Integer(), primary_key=True) | ||
name = Column(String(100)) | ||
articles = relationship( | ||
"Article", secondary="articles_readers", back_populates="readers" | ||
) | ||
|
||
|
||
class ArticleReader(Base): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Had to add some deeper nesting in the test data for more robust tests There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added a |
||
__tablename__ = "articles_readers" | ||
article_id = Column(Integer(), ForeignKey("articles.id"), primary_key=True) | ||
reader_id = Column(Integer(), ForeignKey("readers.id"), primary_key=True) | ||
|
||
|
||
class ReflectedEditor(type): | ||
|
Uh oh!
There was an error while loading. Please reload this page.