mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 09:19:59 +00:00
order torrent.trackers relation
This commit is contained in:
parent
be0f07d6b8
commit
02c04ce893
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue