diff options
Diffstat (limited to 'src/web/models/article.py')
-rw-r--r-- | src/web/models/article.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/web/models/article.py b/src/web/models/article.py index 87ad1a9a..923d6869 100644 --- a/src/web/models/article.py +++ b/src/web/models/article.py @@ -52,10 +52,10 @@ class Article(db.Model, RightMixin): category_id = db.Column(db.Integer(), db.ForeignKey('category.id')) # relationships - tag_objs = db.relationship('Tag', back_populates='article', - cascade='all,delete-orphan', - lazy=False, - foreign_keys='[Tag.article_id]') + tag_objs = db.relationship('ArticleTag', back_populates='article', + cascade='all,delete-orphan', + lazy=False, + foreign_keys='[ArticleTag.article_id]') tags = association_proxy('tag_objs', 'text') # index |