diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2017-02-13 15:27:13 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2017-02-13 15:27:13 +0100 |
commit | 879427aa740f399aecd31c0e12909e6f39705f5e (patch) | |
tree | 5bb2d792e7211c763db550eaf8f0c676e37aa25a /src/web/models/article.py | |
parent | Merge branch 'master' of github.com:newspipe/newspipe into bookmark (diff) | |
download | newspipe-879427aa740f399aecd31c0e12909e6f39705f5e.tar.gz newspipe-879427aa740f399aecd31c0e12909e6f39705f5e.tar.bz2 newspipe-879427aa740f399aecd31c0e12909e6f39705f5e.zip |
wip
Diffstat (limited to 'src/web/models/article.py')
-rw-r--r-- | src/web/models/article.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/web/models/article.py b/src/web/models/article.py index 923d6869..6245b10e 100644 --- a/src/web/models/article.py +++ b/src/web/models/article.py @@ -34,6 +34,8 @@ from sqlalchemy.ext.associationproxy import association_proxy from web.models.right_mixin import RightMixin + + class Article(db.Model, RightMixin): "Represent an article from a feed." id = db.Column(db.Integer(), primary_key=True) @@ -53,9 +55,9 @@ class Article(db.Model, RightMixin): # relationships tag_objs = db.relationship('ArticleTag', back_populates='article', - cascade='all,delete-orphan', - lazy=False, - foreign_keys='[ArticleTag.article_id]') + cascade='all,delete-orphan', + lazy=False, + foreign_keys='[ArticleTag.article_id]') tags = association_proxy('tag_objs', 'text') # index |