Added identifier to saved fields on multiple state management.

This commit is contained in:
Norman Jäckel 2019-03-01 21:11:14 +01:00
parent c21d8be108
commit e22274653d
1 changed files with 9 additions and 1 deletions

View File

@ -668,7 +668,15 @@ class MotionViewSet(ModelViewSet):
motion.set_state(state_id)
# Save motion.
motion.save(update_fields=["state", "last_modified"], skip_autoupdate=True)
motion.save(
update_fields=[
"state",
"identifier",
"identifier_number",
"last_modified",
],
skip_autoupdate=True,
)
# Write the log message.
motion.write_log(