Merge "objects: exclude revision_number from updatable fields"

This commit is contained in:
Jenkins 2017-06-09 08:32:17 +00:00 committed by Gerrit Code Review
commit 0297bde80f
1 changed files with 3 additions and 0 deletions

View File

@ -27,3 +27,6 @@ def add_standard_attributes(cls):
cls.fields.update(STANDARD_ATTRIBUTES)
# those fields are updated by sqlalchemy itself
cls.fields_no_update += ('created_at', 'updated_at')
# revision numbers are managed by service plugin and are bumped
# automatically; consumers should not bump them explicitly
cls.fields_no_update.append('revision_number')