aboutsummaryrefslogtreecommitdiff
path: root/src/web/models/article.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2017-04-09 09:30:20 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2017-04-09 09:30:20 +0200
commit1d2a7fbce2abcde13b9741d7fa6ec83c074b7c0a (patch)
treec5b8434d90450c921e8bbb90aad4781e4135fb62 /src/web/models/article.py
parentcerificate renewed (diff)
downloadnewspipe-1d2a7fbce2abcde13b9741d7fa6ec83c074b7c0a.tar.gz
newspipe-1d2a7fbce2abcde13b9741d7fa6ec83c074b7c0a.tar.bz2
newspipe-1d2a7fbce2abcde13b9741d7fa6ec83c074b7c0a.zip
Removed prototype code for bookmarks from master branch.
Diffstat (limited to 'src/web/models/article.py')
-rw-r--r--src/web/models/article.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/web/models/article.py b/src/web/models/article.py
index 6245b10e..87ad1a9a 100644
--- a/src/web/models/article.py
+++ b/src/web/models/article.py
@@ -34,8 +34,6 @@ 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)
@@ -54,10 +52,10 @@ class Article(db.Model, RightMixin):
category_id = db.Column(db.Integer(), db.ForeignKey('category.id'))
# relationships
- tag_objs = db.relationship('ArticleTag', back_populates='article',
- cascade='all,delete-orphan',
- lazy=False,
- foreign_keys='[ArticleTag.article_id]')
+ tag_objs = db.relationship('Tag', back_populates='article',
+ cascade='all,delete-orphan',
+ lazy=False,
+ foreign_keys='[Tag.article_id]')
tags = association_proxy('tag_objs', 'text')
# index
bgstack15