diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2017-02-12 16:41:09 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2017-02-12 16:41:09 +0100 |
commit | 8bd82176356540b88eece24b96d7eb6a2260d718 (patch) | |
tree | 619caf62c174d09448e3da9c873b2df0d26dd5c2 /src/web/models/user.py | |
parent | New https certificate (diff) | |
download | newspipe-8bd82176356540b88eece24b96d7eb6a2260d718.tar.gz newspipe-8bd82176356540b88eece24b96d7eb6a2260d718.tar.bz2 newspipe-8bd82176356540b88eece24b96d7eb6a2260d718.zip |
prototypefor bookmarks
Diffstat (limited to 'src/web/models/user.py')
-rw-r--r-- | src/web/models/user.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/web/models/user.py b/src/web/models/user.py index 460958e0..d2b3c52a 100644 --- a/src/web/models/user.py +++ b/src/web/models/user.py @@ -38,6 +38,7 @@ from bootstrap import db from web.models.right_mixin import RightMixin from web.models.category import Category from web.models.feed import Feed +from web.models.bookmark import Bookmark class User(db.Model, UserMixin, RightMixin): @@ -71,6 +72,9 @@ class User(db.Model, UserMixin, RightMixin): feeds = db.relationship('Feed', backref='user', cascade='all, delete-orphan', foreign_keys=[Feed.user_id]) + bookmarks = db.relationship('Bookmark', backref='user', + cascade='all, delete-orphan', + foreign_keys=[Bookmark.user_id]) @staticmethod def _fields_base_write(): |