diff options
| author | Hunternif | 2019-04-16 19:24:50 +0700 |
|---|---|---|
| committer | Hunternif | 2019-04-16 20:01:37 +0700 |
| commit | 067fdd2ad1814bc0588f393bb955563d2c1ba546 (patch) | |
| tree | 3fd9c27b287684497ec7235b9f1e2fd6413719c4 /server/szurubooru/model/post.py | |
| parent | 91a31eba4372a59592bec892fe82ec7a3fc8dc7e (diff) | |
Complete metric models and unit tests
Diffstat (limited to 'server/szurubooru/model/post.py')
| -rw-r--r-- | server/szurubooru/model/post.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/szurubooru/model/post.py b/server/szurubooru/model/post.py index c0e3b13..91eac4d 100644 --- a/server/szurubooru/model/post.py +++ b/server/szurubooru/model/post.py @@ -197,6 +197,10 @@ class Post(Base): notes = sa.orm.relationship( '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') # dynamic columns tag_count = sa.orm.column_property( |