order torrent.trackers relation

This commit is contained in:
nyaadev 2017-05-25 00:36:49 +02:00
parent be0f07d6b8
commit 02c04ce893
1 changed files with 1 additions and 1 deletions

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")