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

View File

@ -668,7 +668,15 @@ class MotionViewSet(ModelViewSet):
motion.set_state(state_id) motion.set_state(state_id)
# Save motion. # 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. # Write the log message.
motion.write_log( motion.write_log(