summaryrefslogtreecommitdiff
path: root/server/szurubooru/model/post.py
diff options
context:
space:
mode:
Diffstat (limited to 'server/szurubooru/model/post.py')
-rw-r--r--server/szurubooru/model/post.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/szurubooru/model/post.py b/server/szurubooru/model/post.py
index 49e748d..deb3cc8 100644
--- a/server/szurubooru/model/post.py
+++ b/server/szurubooru/model/post.py
@@ -253,6 +253,12 @@ class Post(Base):
"PostNote", cascade="all, delete-orphan", lazy="joined"
)
comments = sa.orm.relationship("Comment", cascade="all, delete-orphan")
+ metrics = sa.orm.relationship(
+ "PostMetric", cascade="all, delete-orphan", lazy="joined"
+ )
+ metric_ranges = sa.orm.relationship(
+ "PostMetricRange", cascade="all, delete-orphan", lazy="joined"
+ )
_pools = sa.orm.relationship(
"PoolPost",
cascade="all,delete-orphan",