aboutsummaryrefslogtreecommitdiff
path: root/src/web/models/user.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/models/user.py')
-rw-r--r--src/web/models/user.py4
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():
bgstack15