kopia lustrzana https://github.com/glidernet/ogn-python
Order backref from device to takeoff_landings by timestamp
rodzic
e3ac6d19a2
commit
e5afd1a56b
|
@ -16,4 +16,4 @@ class TakeoffLanding(Base):
|
|||
|
||||
# Relations
|
||||
airport = relationship('Airport', foreign_keys=[airport_id], backref='takeoff_landings')
|
||||
device = relationship('Device', foreign_keys=[device_id], backref='takeoff_landings')
|
||||
device = relationship('Device', foreign_keys=[device_id], backref='takeoff_landings', order_by='TakeoffLanding.timestamp')
|
||||
|
|
Ładowanie…
Reference in New Issue