Merge "Revert "Use HasStandardAttributes as parent class for Tags DB model"" into stable/2024.1

This commit is contained in:
Zuul 2024-06-14 16:20:59 +00:00 committed by Gerrit Code Review
commit 4447da7b26

View File

@ -26,6 +26,6 @@ class Tag(model_base.BASEV2):
tag = sa.Column(sa.String(255), nullable=False, primary_key=True)
standard_attr = orm.relationship(
'StandardAttribute', load_on_pending=True,
backref=orm.backref('tags', lazy='joined', viewonly=True),
backref=orm.backref('tags', lazy='subquery', viewonly=True),
sync_backref=False)
revises_on_change = ('standard_attr', )