diff options
Diffstat (limited to 'src/web')
-rw-r--r-- | src/web/models/article.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/web/models/article.py b/src/web/models/article.py index 5261cb0d..87ad1a9a 100644 --- a/src/web/models/article.py +++ b/src/web/models/article.py @@ -71,7 +71,11 @@ class Article(db.Model, RightMixin): @staticmethod def _fields_base_read(): return {'id', 'entry_id', 'link', 'title', 'content', 'date', - 'retrieved_date', 'user_id'} + 'retrieved_date', 'user_id', 'tags'} + + @staticmethod + def _fields_api_write(): + return {'tags'} def __repr__(self): return "<Article(id=%d, entry_id=%s, title=%r, " \ |