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

This commit is contained in:
Zuul 2024-06-12 20:27:52 +00:00 committed by Gerrit Code Review
commit f9585ef903

View File

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