1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 15:30:01 +00:00

order torrent.trackers relation

This commit is contained in:
nyaadev 2017-05-25 00:36:49 +02:00
parent be0f07d6b8
commit 02c04ce893

View file

@ -100,7 +100,7 @@ class Torrent(db.Model):
stats = db.relationship('Statistic', uselist=False,
cascade="all, delete-orphan", back_populates='torrent', lazy='joined')
trackers = db.relationship('TorrentTrackers', uselist=True,
cascade="all, delete-orphan", lazy='joined')
cascade="all, delete-orphan", lazy='joined', order_by='TorrentTrackers.order')
comments = db.relationship('Comment', uselist=True,
cascade="all, delete-orphan")