mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #13165 from ic4f/dev_backref_to_backpopulates
Replace backref with back_populates
This commit is contained in:
@@ -77,7 +77,6 @@ from sqlalchemy.ext.associationproxy import association_proxy
|
||||
from sqlalchemy.ext.orderinglist import ordering_list
|
||||
from sqlalchemy.orm import (
|
||||
aliased,
|
||||
backref,
|
||||
column_property,
|
||||
deferred,
|
||||
joinedload,
|
||||
@@ -8486,7 +8485,8 @@ class Vault(Base):
|
||||
|
||||
key = Column(Text, primary_key=True)
|
||||
parent_key = Column(Text, ForeignKey(key), index=True, nullable=True)
|
||||
children = relationship('Vault', backref=backref('parent', remote_side=[key]))
|
||||
children = relationship('Vault', back_populates='parent')
|
||||
parent = relationship('Vault', back_populates='children', remote_side=[key])
|
||||
value = Column(Text, nullable=True)
|
||||
create_time = Column(DateTime, default=now)
|
||||
update_time = Column(DateTime, default=now, onupdate=now)
|
||||
|
||||
Reference in New Issue
Block a user