Revert "fix identifier setting on mass setstate"

This reverts commit e870ed495a.
This commit is contained in:
Norman Jäckel 2019-03-01 21:09:01 +01:00
parent 4366f753f4
commit c21d8be108

View File

@ -666,18 +666,9 @@ class MotionViewSet(ModelViewSet):
{"detail": f"You can not set the state to {state_id}."}
)
motion.set_state(state_id)
state = State.objects.get(pk=state_id)
# Save motion.
if not state.dont_set_identifier:
motion.save(
update_fields=["state", "last_modified", "identifier"],
skip_autoupdate=True,
)
else:
motion.save(
update_fields=["state", "last_modified"], skip_autoupdate=True
)
motion.save(update_fields=["state", "last_modified"], skip_autoupdate=True)
# Write the log message.
motion.write_log(