mirror of
https://github.com/simon987/nyaa.git
synced 2025-12-14 07:39:03 +00:00
order torrent.trackers relation
This commit is contained in:
@@ -100,7 +100,7 @@ class Torrent(db.Model):
|
|||||||
stats = db.relationship('Statistic', uselist=False,
|
stats = db.relationship('Statistic', uselist=False,
|
||||||
cascade="all, delete-orphan", back_populates='torrent', lazy='joined')
|
cascade="all, delete-orphan", back_populates='torrent', lazy='joined')
|
||||||
trackers = db.relationship('TorrentTrackers', uselist=True,
|
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,
|
comments = db.relationship('Comment', uselist=True,
|
||||||
cascade="all, delete-orphan")
|
cascade="all, delete-orphan")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user